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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp

Issue 1994043002: Get rid of a redundant function alias lastPositionInNode() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-19T14:50:30 Created 4 years, 7 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 09c3a54af7f882473c557d24bf4aa287382e1d8d..9b2cb8fa2022001246d8b073dbe254e43d5e46ce 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -1541,7 +1541,7 @@ Position CompositeEditCommand::positionAvoidingSpecialElementBoundary(const Posi
// Don't avoid block level anchors, because that would insert content into the wrong paragraph.
if (enclosingAnchor && !isEnclosingBlock(enclosingAnchor)) {
VisiblePosition firstInAnchor = VisiblePosition::firstPositionInNode(enclosingAnchor);
- VisiblePosition lastInAnchor = createVisiblePosition(lastPositionInNode(enclosingAnchor));
+ VisiblePosition lastInAnchor = createVisiblePosition(Position::lastPositionInNode(enclosingAnchor));
// If visually just after the anchor, insert *inside* the anchor unless it's the last
// VisiblePosition in the document, to match NSTextView.
if (visiblePos.deepEquivalent() == lastInAnchor.deepEquivalent()) {

Powered by Google App Engine
This is Rietveld 408576698