| 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 155c10e439a954a7004474faceb8a605a7758138..4bd8aed6783699c6a8367a6f2000826309098db4 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2423,7 +2423,10 @@ bool WebViewImpl::selectionTextDirection(WebTextDirection& start,
|
| return false;
|
| start =
|
| toWebTextDirection(primaryDirectionOf(*selection.start().anchorNode()));
|
| - end = toWebTextDirection(primaryDirectionOf(*selection.end().anchorNode()));
|
| + end = toWebTextDirection(
|
| + primaryDirectionOf(*selection.computeVisibleSelectionInDOMTreeDeprecated()
|
| + .end()
|
| + .anchorNode()));
|
| return true;
|
| }
|
|
|
|
|