| 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 8d8bed6c8780dbc9907868ea24f60e3339db1ce7..9e2070a8a18704e3d64fe2c18f73d979f64b295a 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp
|
| @@ -125,7 +125,7 @@ LayoutRect LayoutSVGInlineText::LocalCaretRect(InlineBox* box,
|
|
|
| FloatRect LayoutSVGInlineText::FloatLinesBoundingBox() const {
|
| FloatRect bounding_box;
|
| - for (InlineTextBox* box = FirstTextBox(); box; box = box->NextTextBox())
|
| + for (InlineTextBox* box : InlineTextBoxesOf(*this))
|
| bounding_box.Unite(FloatRect(box->FrameRect()));
|
| return bounding_box;
|
| }
|
| @@ -177,7 +177,7 @@ PositionWithAffinity LayoutSVGInlineText::PositionForPoint(
|
| const SVGTextFragment* closest_distance_fragment = nullptr;
|
| SVGInlineTextBox* closest_distance_box = nullptr;
|
|
|
| - for (InlineTextBox* box = FirstTextBox(); box; box = box->NextTextBox()) {
|
| + for (InlineTextBox* box : InlineTextBoxesOf(*this)) {
|
| if (!box->IsSVGInlineTextBox())
|
| continue;
|
|
|
|
|