haikuwebkit/ManualTests/svg-animation-css-transform...

20 lines
676 B
HTML
Raw Permalink Normal View History

First step towards http://webkit.org/b/70025 Allow -webkit-transform to be have effect to SVG elements. Currently, the CSS transform takes precedence over the SVG transform attribute Allow SVG elements to be transformed using webkit-transform https://bugs.webkit.org/show_bug.cgi?id=71309 Patch by Raul Hudea <rhudea@adobe.com> on 2011-11-23 Reviewed by Nikolas Zimmermann. Source/WebCore: Tests: svg/clip-path/clip-path-css-transform-1.svg svg/clip-path/clip-path-css-transform-2.svg svg/custom/clip-path-with-css-transform-1.svg svg/custom/clip-path-with-css-transform-2.svg svg/custom/pointer-events-image-css-transform.svg svg/custom/pointer-events-text-css-transform.svg svg/dom/css-transforms.xhtml svg/dynamic-updates/SVG-dynamic-css-transform.html svg/dynamic-updates/SVGClipPathElement-css-transform-influences-hitTesting.html svg/transforms/svg-css-transforms-clip-path.xhtml svg/transforms/svg-css-transforms.xhtml * manual-tests/svg-animation-css-transform.html: Added. * manual-tests/svg-css-animate-compound.html: Added. * manual-tests/svg-css-transition-compound.html: Added. * rendering/svg/RenderSVGModelObject.cpp: (WebCore::RenderSVGModelObject::styleWillChange): Set the updateTransform flag on SVG elements whenever a CSS transform is present on the style * svg/SVGStyledTransformableElement.cpp: (WebCore::SVGStyledTransformableElement::animatedLocalTransform): Use the RenderStyle's transform (if it exists) over the SVG's transform * svg/SVGTextElement.cpp: (WebCore::SVGTextElement::animatedLocalTransform): Use the RenderStyle's transform (if it exists) over the SVG's transform LayoutTests: * platform/chromium/test_expectations.txt: * platform/mac/svg/clip-path/clip-path-css-transform-1-expected.png: Added. * platform/mac/svg/clip-path/clip-path-css-transform-1-expected.txt: Added. * platform/mac/svg/clip-path/clip-path-css-transform-2-expected.png: Added. * platform/mac/svg/clip-path/clip-path-css-transform-2-expected.txt: Added. * platform/mac/svg/custom/clip-path-with-css-transform-1-expected.png: Added. * platform/mac/svg/custom/clip-path-with-css-transform-1-expected.txt: Added. * platform/mac/svg/custom/clip-path-with-css-transform-2-expected.png: Added. * platform/mac/svg/custom/clip-path-with-css-transform-2-expected.txt: Added. * platform/mac/svg/custom/pointer-events-image-css-transform-expected.png: Added. * platform/mac/svg/custom/pointer-events-image-css-transform-expected.txt: Added. * platform/mac/svg/custom/pointer-events-text-css-transform-expected.png: Added. * platform/mac/svg/custom/pointer-events-text-css-transform-expected.txt: Added. * platform/mac/svg/dom/css-transforms-expected.png: Added. * platform/mac/svg/dynamic-updates/SVG-dynamic-css-transform-expected.png: Added. * platform/mac/svg/dynamic-updates/SVGClipPathElement-css-transform-influences-hitTesting-expected.png: Added. * platform/mac/svg/transforms/svg-css-transforms-clip-path-expected.png: Added. * platform/mac/svg/transforms/svg-css-transforms-clip-path-expected.txt: Added. * platform/mac/svg/transforms/svg-css-transforms-expected.png: Added. * platform/mac/svg/transforms/svg-css-transforms-expected.txt: Added. * svg/clip-path/clip-path-css-transform-1.svg: Added. * svg/clip-path/clip-path-css-transform-2.svg: Added. * svg/custom/clip-path-with-css-transform-1.svg: Added. * svg/custom/clip-path-with-css-transform-2.svg: Added. * svg/custom/pointer-events-image-css-transform.svg: Added. * svg/custom/pointer-events-text-css-transform.svg: Added. * svg/dom/css-transforms-expected.txt: Added. * svg/dom/css-transforms.xhtml: Added. * svg/dynamic-updates/SVG-dynamic-css-transform-expected.txt: Added. * svg/dynamic-updates/SVG-dynamic-css-transform.html: Added. * svg/dynamic-updates/SVGClipPathElement-css-transform-influences-hitTesting-expected.txt: Added. * svg/dynamic-updates/SVGClipPathElement-css-transform-influences-hitTesting.html: Added. * svg/dynamic-updates/script-tests/SVGClipPathElement-css-transform-influences-hitTesting.js: Added. (executeBackgroundTest): (executeTest): * svg/transforms/svg-css-transforms-clip-path.xhtml: Added. * svg/transforms/svg-css-transforms.xhtml: Added. Canonical link: https://commits.webkit.org/89545@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-11-23 11:34:37 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SVG Animation of elements transformed using -webkit-transform</title>
</head>
<body>
<h1>SVG Animation of SVG element rotated using '-webkit-transform'</h1>
<p>The rotated rect should from 0,0 to 100,0 over 3 seconds.</p>
<svg xmlns='http://www.w3.org/2000/svg'>
<rect id="target" width='100' height='100' stroke="blue" fill="none" style="-webkit-transform: rotate(45deg)">
<animateMotion to='100,0' dur='3s' />
</rect>
</svg>
</body>
</html>