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 dba0b1d55813690adbf29dc22a1c59d7342e10b2..12a48239c38c7922f64c6161a4ce3b2d8fdf64a4 100644 |
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
@@ -604,7 +604,10 @@ bool WebFrameWidgetImpl::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; |
} |