haikuwebkit/LayoutTests/svg/dynamic-updates/SVGClipPathElement-transfor...

13 lines
275 B
Plaintext
Raw Permalink Normal View History

SVG 1.1: ineffectual transform attribute for ClipPath https://bugs.webkit.org/show_bug.cgi?id=55361 Source/WebCore: Reviewed by Nikolas Zimmermann. Respect 'transform' attribute/property for <clip-path>. If the masking code path is used the mask context gets transformed, otherwise the path itself. Tests: svg/clip-path/clip-path-transform-1.svg svg/clip-path/clip-path-transform-2.svg svg/dynamic-updates/SVGClipPathElement-transform-influences-hitTesting.html * rendering/svg/RenderSVGResourceClipper.cpp: (WebCore::RenderSVGResourceClipper::pathOnlyClipping): Transform the clip path. (WebCore::RenderSVGResourceClipper::applyClippingToContext): (WebCore::RenderSVGResourceClipper::drawContentIntoMaskImage): Transform the context of the mask image. (WebCore::RenderSVGResourceClipper::calculateClipContentRepaintRect): Repaint rect must get concatenated with the current animated transformation. (WebCore::RenderSVGResourceClipper::hitTestClipContent): Point for hit testing must be transformed by the current animated transformation. * rendering/svg/RenderSVGResourceClipper.h: LayoutTests: Reviewed by Nikolas Zimmermann. Test that the clip path gets concatenated with the current animated transformation and that hit testing is affected correctly. * platform/mac/svg/clip-path/clip-path-transform-1-expected.png: Added. * platform/mac/svg/clip-path/clip-path-transform-1-expected.txt: Added. * platform/mac/svg/clip-path/clip-path-transform-2-expected.png: Added. * platform/mac/svg/clip-path/clip-path-transform-2-expected.txt: Added. * svg/clip-path/clip-path-transform-1.svg: Added. Test clipping to path with transform. * svg/clip-path/clip-path-transform-2.svg: Added. Test masking with transform. * svg/dynamic-updates/SVGClipPathElement-transform-influences-hitTesting-expected.png: Added. * svg/dynamic-updates/SVGClipPathElement-transform-influences-hitTesting-expected.txt: Added. * svg/dynamic-updates/SVGClipPathElement-transform-influences-hitTesting.html: Added. * svg/dynamic-updates/script-tests/SVGClipPathElement-transform-influences-hitTesting.js: Added. (executeBackgroundTest): (executeTest): Canonical link: https://commits.webkit.org/85473@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-10-05 16:20:32 +00:00
SVG 1.1 dynamic update tests
Tests hitTesting on clipped Elements. Clip-path gets transformed.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS Hit thrown on not clipped area of rect.
PASS successfullyParsed is true
TEST COMPLETE