| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index a203cd2faf9291a03475309d88a7c91a3ed3e397..90a7c3a442834ccb06d5bf506ea04eb0c649587b 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2421,8 +2421,10 @@ bool WebViewImpl::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()
|
|
|