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

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

Issue 1997563002: Get rid of a redundant function alias positionBeforeNode() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-19T22:35:34 rebase 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/Position.cpp
diff --git a/third_party/WebKit/Source/core/editing/Position.cpp b/third_party/WebKit/Source/core/editing/Position.cpp
index 8551cdac8ace648c1ff5f6ffb7f00ac9a1ac7353..411ebff1de79116f013ef371a977e3503d873b44 100644
--- a/third_party/WebKit/Source/core/editing/Position.cpp
+++ b/third_party/WebKit/Source/core/editing/Position.cpp
@@ -473,7 +473,7 @@ Position toPositionInDOMTree(const PositionInFlatTree& position)
case PositionAnchorType::BeforeChildren:
return Position(anchorNode, PositionAnchorType::BeforeChildren);
case PositionAnchorType::BeforeAnchor:
- return positionBeforeNode(anchorNode);
+ return Position::beforeNode(anchorNode);
case PositionAnchorType::OffsetInAnchor: {
int offset = position.offsetInContainerNode();
if (anchorNode->offsetInCharacters())
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.h ('k') | third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698