| Index: third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp b/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp
|
| index 58aeaf3a224fe46e0afef099397d189217b5f389..8c9f62689ceb2240ad0a0dea5e2899b3ca723cf4 100644
|
| --- a/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp
|
| @@ -342,22 +342,22 @@ static PositionTemplate<Strategy> TraverseInternalAlgorithm(
|
| if (!prev_box || prev_box->BidiLevel() < level)
|
| continue;
|
| }
|
| - } else {
|
| - // Trailing edge of a secondary run. Set to the leading edge of
|
| - // the entire run.
|
| - while (true) {
|
| - box = Traversal::FindBackwardBoundaryOfEntireBidiRun(*box, level);
|
| - if (box->BidiLevel() == level)
|
| - break;
|
| - level = box->BidiLevel();
|
| - box = Traversal::FindForwardBoundaryOfEntireBidiRun(*box, level);
|
| - if (box->BidiLevel() == level)
|
| - break;
|
| - level = box->BidiLevel();
|
| - }
|
| - line_layout_item = box->GetLineLayoutItem();
|
| - offset = Traversal::CaretMinOffsetOf(primary_direction, *box);
|
| + break;
|
| + }
|
| + // Trailing edge of a secondary run. Set to the leading edge of
|
| + // the entire run.
|
| + while (true) {
|
| + box = Traversal::FindBackwardBoundaryOfEntireBidiRun(*box, level);
|
| + if (box->BidiLevel() == level)
|
| + break;
|
| + level = box->BidiLevel();
|
| + box = Traversal::FindForwardBoundaryOfEntireBidiRun(*box, level);
|
| + if (box->BidiLevel() == level)
|
| + break;
|
| + level = box->BidiLevel();
|
| }
|
| + line_layout_item = box->GetLineLayoutItem();
|
| + offset = Traversal::CaretMinOffsetOf(primary_direction, *box);
|
| break;
|
| }
|
|
|
|
|