Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp |
index 4747a61e37f7b62d7d042ea4df6b102fdbca0a77..a7a0253fd224bd392b1206fca90d745b124c6a63 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp |
@@ -183,15 +183,8 @@ PositionWithAffinity LayoutSVGInlineText::positionForPoint(const LayoutPoint& po |
continue; |
SVGInlineTextBox* textBox = toSVGInlineTextBox(box); |
- Vector<SVGTextFragment>& fragments = textBox->textFragments(); |
- |
- unsigned textFragmentsSize = fragments.size(); |
- for (unsigned i = 0; i < textFragmentsSize; ++i) { |
- const SVGTextFragment& fragment = fragments.at(i); |
- FloatRect fragmentRect(fragment.x, fragment.y - baseline, fragment.width, fragment.height); |
- fragment.buildFragmentTransform(fragmentTransform); |
- if (!fragmentTransform.isIdentity()) |
- fragmentRect = fragmentTransform.mapRect(fragmentRect); |
+ for (const SVGTextFragment& fragment : textBox->textFragments()) { |
+ FloatRect fragmentRect = fragment.boundingBox(baseline); |
float distance = 0; |
if (!fragmentRect.contains(absolutePoint)) |