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

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

Issue 2957833004: Make VisiblePosition::LastPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-27T15:28:02 Created 3 years, 6 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
Index: third_party/WebKit/Source/core/editing/SelectionController.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp
index 3a87870bd3d9a309b4ee7b6e6b9e6033aec11490..d8383c49c95d47414bc2ac2fa4fbbff8c4a79458 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
@@ -521,7 +521,7 @@ bool SelectionController::SelectClosestWordFromHitTestResult(
if (new_selection.RootEditableElement() &&
pos.DeepEquivalent() == VisiblePositionInFlatTree::LastPositionInNode(
- new_selection.RootEditableElement())
+ *new_selection.RootEditableElement())
.DeepEquivalent())
return false;

Powered by Google App Engine
This is Rietveld 408576698