Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 2740893003: Simplify directional selection check in FrameSelection::moveCaretSelection() (Closed)
Patch Set: 2017-03-10T10:07:02 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 4cc7856aa5c14dede1859580955edb1113b2243e..1e9ed9cd90bd43e0c4d3cce96f489649faca750d 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -173,8 +173,7 @@ void FrameSelection::moveCaretSelection(const IntPoint& point) {
const VisiblePosition position =
visiblePositionForContentsPoint(point, frame());
SelectionInDOMTree::Builder builder;
- builder.setIsDirectional(
- computeVisibleSelectionInDOMTreeDeprecated().isDirectional());
+ builder.setIsDirectional(selectionInDOMTree().isDirectional());
builder.setIsHandleVisible(true);
if (position.isNotNull())
builder.collapse(position.toPositionWithAffinity());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698