Changeset 284853 in webkit
- Timestamp:
- Oct 25, 2021, 6:44:38 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/svg/styling/render/transform-origin-not-explicit-style-visual-expected.svg (added)
-
LayoutTests/imported/w3c/web-platform-tests/svg/styling/render/transform-origin-not-explicit-style-visual.svg (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/svg/SVGGraphicsElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r284821 r284853 1 2021-10-25 Nikolaos Mouchtaris <nmouchtaris@apple.com> 2 3 Fix issue for transform-origin in SVG 4 https://bugs.webkit.org/show_bug.cgi?id=232189 5 6 Reviewed by Simon Fraser. 7 8 * web-platform-tests/svg/styling/render/transform-origin-not-explicit-style-ref.svg: Added. 9 * web-platform-tests/svg/styling/render/transform-origin-not-explicit-style.svg: Added. 10 1 11 2021-10-25 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r284844 r284853 1 2021-10-25 Nikolaos Mouchtaris <nmouchtaris@apple.com> 2 3 Fix issue for transform-origin in SVG 4 https://bugs.webkit.org/show_bug.cgi?id=232189 5 6 Reviewed by Simon Fraser. 7 8 Add temp fix to use previously ignored transform-origin in SVGGraphicsElement::animatedLocalTransform 9 if not explicitly set in style. Proper fix to come: https://bugs.webkit.org/show_bug.cgi?id=232128. 10 11 Tests: imported/w3c/web-platform-tests/svg/styling/render/transform-origin-not-explicit-style-ref.svg 12 imported/w3c/web-platform-tests/svg/styling/render/transform-origin-not-explicit-style.svg 13 14 * svg/SVGGraphicsElement.cpp: 15 (WebCore::SVGGraphicsElement::animatedLocalTransform const): 16 1 17 2021-10-25 Chris Fleizach <cfleizach@apple.com> 2 18 -
trunk/Source/WebCore/svg/SVGGraphicsElement.cpp
r282379 r284853 100 100 101 101 // If we didn't have the CSS "transform" property set, we must account for the "transform" attribute. 102 if (!hasSpecifiedTransform) 102 if (!hasSpecifiedTransform && style) { 103 auto boundingBox = SVGRenderSupport::transformReferenceBox(*renderer(), *this, *style); 104 auto t = floatPointForLengthPoint(style->transformOriginXY(), boundingBox.size()); 105 matrix.translate(t); 103 106 matrix *= transform().concatenate(); 107 matrix.translate(-t.x(), -t.y()); 108 } 104 109 105 110 if (m_supplementalTransform)
Note:
See TracChangeset
for help on using the changeset viewer.