| Index: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
|
| index 10d340b977448843fabff0bbf4e62664593e10a2..e4bf6aeffaf43c2e7c4fd68178a07ba42be38811 100644
|
| --- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp
|
| @@ -175,8 +175,7 @@ void TextIteratorTextNodeHandler::HandleTextNodeInRange(Text* node,
|
| // Used when text boxes are out of order (Hebrew/Arabic w/ embeded LTR text)
|
| if (layout_object->ContainsReversedText()) {
|
| sorted_text_boxes_.clear();
|
| - for (InlineTextBox* text_box = layout_object->FirstTextBox(); text_box;
|
| - text_box = text_box->NextTextBox()) {
|
| + for (InlineTextBox* text_box : InlineTextBoxesOf(*layout_object)) {
|
| sorted_text_boxes_.push_back(text_box);
|
| }
|
| std::sort(sorted_text_boxes_.begin(), sorted_text_boxes_.end(),
|
|
|