Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
index 534775940e14d91c1e827e89c5b434c4b24ea6ef..7a71abebd9146ae409e7e65ee8837536c3aac27c 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
@@ -287,8 +287,8 @@ PositionWithAffinity LayoutSVGRoot::positionForPoint(const LayoutPoint& point) |
return LayoutReplaced::positionForPoint(point); |
LayoutObject* layoutObject = closestDescendant; |
- AffineTransform transform = closestDescendant->localToParentTransform(); |
- transform.translate(toLayoutSVGText(closestDescendant)->location().x(), toLayoutSVGText(closestDescendant)->location().y()); |
+ AffineTransform transform = layoutObject->localToParentTransform(); |
+ transform.translate(toLayoutSVGText(layoutObject)->location().x(), toLayoutSVGText(layoutObject)->location().y()); |
while (layoutObject) { |
layoutObject = layoutObject->parent(); |
if (layoutObject->isSVGRoot()) |