Index: third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp b/third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp |
index 25ed6c5185200c75db69931ae951ffdb8b729ec4..b3b9d493e15cf144dc302826f50120edbae7d30c 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp |
@@ -244,9 +244,8 @@ bool SVGInlineTextBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& |
if (hitRules.canHitBoundingBox |
|| (hitRules.canHitStroke && (getLineLayoutItem().style()->svgStyle().hasStroke() || !hitRules.requireStroke)) |
|| (hitRules.canHitFill && (getLineLayoutItem().style()->svgStyle().hasFill() || !hitRules.requireFill))) { |
- LayoutPoint boxOrigin(x(), y()); |
- boxOrigin.moveBy(accumulatedOffset); |
- LayoutRect rect(boxOrigin, size()); |
+ LayoutRect rect(topLeft(), LayoutSize(logicalWidth(), logicalHeight())); |
+ rect.moveBy(accumulatedOffset); |
if (locationInContainer.intersects(rect)) { |
LineLayoutSVGInlineText lineLayoutItem = LineLayoutSVGInlineText(this->getLineLayoutItem()); |
ASSERT(lineLayoutItem.scalingFactor()); |