| Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| index 925929f74d2aaac9fa30a0684cf1d7195b11fbe1..740bf93ec79a6804c131a342fb2a0ec9b45738ce 100644
|
| --- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| @@ -602,8 +602,10 @@ bool WebFrameWidgetImpl::selectionTextDirection(WebTextDirection& start,
|
| .toNormalizedEphemeralRange()
|
| .isNull())
|
| return false;
|
| - start =
|
| - toWebTextDirection(primaryDirectionOf(*selection.start().anchorNode()));
|
| + start = toWebTextDirection(
|
| + primaryDirectionOf(*selection.computeVisibleSelectionInDOMTreeDeprecated()
|
| + .start()
|
| + .anchorNode()));
|
| end = toWebTextDirection(
|
| primaryDirectionOf(*selection.computeVisibleSelectionInDOMTreeDeprecated()
|
| .end()
|
|
|