| 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 01bbc7bce3b203a20be0edbfc68ef703c755ce39..8cc2f6b003abeab9bbd0d42982854c3ac6fb0099 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| @@ -2372,7 +2372,7 @@ template <typename Strategy>
|
| PositionTemplate<Strategy> DownstreamIgnoringEditingBoundaries(
|
| PositionTemplate<Strategy> position) {
|
| PositionTemplate<Strategy> last_position;
|
| - while (position != last_position) {
|
| + while (!position.IsEquivalent(last_position)) {
|
| last_position = position;
|
| position = MostForwardCaretPosition(position, kCanCrossEditingBoundary);
|
| }
|
| @@ -2383,7 +2383,7 @@ template <typename Strategy>
|
| PositionTemplate<Strategy> UpstreamIgnoringEditingBoundaries(
|
| PositionTemplate<Strategy> position) {
|
| PositionTemplate<Strategy> last_position;
|
| - while (position != last_position) {
|
| + while (!position.IsEquivalent(last_position)) {
|
| last_position = position;
|
| position = MostBackwardCaretPosition(position, kCanCrossEditingBoundary);
|
| }
|
|
|