| Index: third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| index 79e6514d6866b611fd78eea743f9c6aee4156f98..751409debe4532e9e5ebdcd14da9a02d8e363478 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| @@ -2182,7 +2182,7 @@ static Node* nextRenderedEditable(Node* node)
|
| // TODO(yosin) We should have a function to check |InlineBox| types
|
| // in layout rather than using |InlineBox| here. See also
|
| // |previousRenderedEditable()| which has a same condition.
|
| - if ((layoutObject->isBox() && toLayoutBox(layoutObject)->inlineBoxWrapper()) || (layoutObject->isText() && toLayoutText(layoutObject)->firstTextBox()))
|
| + if ((layoutObject->isBox() && toLayoutBox(layoutObject)->inlineBoxWrapper()) || (layoutObject->isText() && toLayoutText(layoutObject)->hasTextBoxes()))
|
| return node;
|
| }
|
| return 0;
|
| @@ -2199,7 +2199,7 @@ static Node* previousRenderedEditable(Node* node)
|
| // TODO(yosin) We should have a function to check |InlineBox| types
|
| // in layout rather than using |InlineBox| here. See also
|
| // |nextRenderedEditable()| which has a same condition.
|
| - if ((layoutObject->isBox() && toLayoutBox(layoutObject)->inlineBoxWrapper()) || (layoutObject->isText() && toLayoutText(layoutObject)->firstTextBox()))
|
| + if ((layoutObject->isBox() && toLayoutBox(layoutObject)->inlineBoxWrapper()) || (layoutObject->isText() && toLayoutText(layoutObject)->hasTextBoxes()))
|
| return node;
|
| }
|
| return 0;
|
|
|