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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.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/commands/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index ebc743c2dae72cab1398a3cc006558c126536026..87df2d6b8ecff7f15ddb50b2a9edadc3b01bd574 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -1801,7 +1801,7 @@ Position CompositeEditCommand::PositionAvoidingSpecialElementBoundary(
VisiblePosition first_in_anchor =
VisiblePosition::FirstPositionInNode(*enclosing_anchor);
VisiblePosition last_in_anchor =
- VisiblePosition::LastPositionInNode(enclosing_anchor);
+ VisiblePosition::LastPositionInNode(*enclosing_anchor);
// If visually just after the anchor, insert *inside* the anchor unless it's
// the last VisiblePosition in the document, to match NSTextView.
if (visible_pos.DeepEquivalent() == last_in_anchor.DeepEquivalent()) {

Powered by Google App Engine
This is Rietveld 408576698