Index: Source/core/rendering/svg/SVGRenderSupport.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderSupport.cpp b/Source/core/rendering/svg/SVGRenderSupport.cpp |
index a9676a093495c0b391bad1e3da6226861e880428..dc3d798f602eccc9960f95bd8f11bb61bb2cd001 100644 |
--- a/Source/core/rendering/svg/SVGRenderSupport.cpp |
+++ b/Source/core/rendering/svg/SVGRenderSupport.cpp |
@@ -67,8 +67,6 @@ void SVGRenderSupport::computeFloatRectForRepaint(const RenderObject* object, co |
void SVGRenderSupport::mapLocalToContainer(const RenderObject* object, const RenderLayerModelObject* repaintContainer, TransformState& transformState, bool* wasFixed) |
{ |
- transformState.applyTransform(object->localToParentTransform()); |
- |
RenderObject* parent = object->parent(); |
// At the SVG/HTML boundary (aka RenderSVGRoot), we apply the localToBorderBoxTransform |
@@ -77,6 +75,8 @@ void SVGRenderSupport::mapLocalToContainer(const RenderObject* object, const Ren |
if (parent->isSVGRoot()) |
transformState.applyTransform(toRenderSVGRoot(parent)->localToBorderBoxTransform()); |
+ transformState.applyTransform(object->localToParentTransform()); |
+ |
MapCoordinatesFlags mode = UseTransforms; |
parent->mapLocalToContainer(repaintContainer, transformState, mode, wasFixed); |
} |