| Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| index 3c3c8fdd7f0d788628b74b37c19222456a469c47..05c4835aadd3fc8a736c303ceec0f7d67da3215b 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -706,8 +706,7 @@ void LayoutInline::GenerateCulledLineBoxRects(
|
| }
|
| } else if (curr->IsText()) {
|
| LayoutText* curr_text = ToLayoutText(curr);
|
| - for (InlineTextBox* child_text = curr_text->FirstTextBox(); child_text;
|
| - child_text = child_text->NextTextBox()) {
|
| + for (InlineTextBox* child_text : InlineTextBoxesOf(*curr_text)) {
|
| RootInlineBox& root_box = child_text->Root();
|
| ComputeItemTopHeight(container, root_box, &logical_top,
|
| &logical_height);
|
| @@ -1340,8 +1339,7 @@ void LayoutInline::DirtyLineBoxes(bool full_layout) {
|
| child_line->Root().MarkDirty();
|
| } else if (curr->IsText()) {
|
| LayoutText* curr_text = ToLayoutText(curr);
|
| - for (InlineTextBox* child_text = curr_text->FirstTextBox();
|
| - child_text; child_text = child_text->NextTextBox())
|
| + for (InlineTextBox* child_text : InlineTextBoxesOf(*curr_text))
|
| child_text->Root().MarkDirty();
|
| }
|
| }
|
|
|