Index: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp |
index 50d328daf0bee3da525922017531e90fa257ea63..711ae96aa405e1705690480d84e63745827e2adb 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp |
@@ -182,7 +182,8 @@ void SVGLayoutSupport::mapLocalToAncestor(const LayoutObject* object, |
void SVGLayoutSupport::mapAncestorToLocal(const LayoutObject& object, |
const LayoutBoxModelObject* ancestor, |
- TransformState& transformState) { |
+ TransformState& transformState, |
+ MapCoordinatesFlags flags) { |
// |object| is either a LayoutSVGModelObject or a LayoutSVGBlock here. In |
// the former case, |object| can never be an ancestor while in the latter |
// the caller is responsible for doing the ancestor check. Because of this, |
@@ -195,7 +196,7 @@ void SVGLayoutSupport::mapAncestorToLocal(const LayoutObject& object, |
const LayoutSVGRoot& svgRoot = |
computeTransformToSVGRoot(object, localToSVGRoot); |
- MapCoordinatesFlags mode = UseTransforms | ApplyContainerFlip; |
+ MapCoordinatesFlags mode = flags | UseTransforms | ApplyContainerFlip; |
svgRoot.mapAncestorToLocal(ancestor, transformState, mode); |
transformState.applyTransform(localToSVGRoot); |