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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionAdjuster.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/SelectionAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
index 5e9cec210a0599c7cbebccb230c31e5b6cdf1505..0196c469891b4eedd9cb0b6833128362bc442634 100644
--- a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
@@ -106,7 +106,7 @@ Position adjustPositionForEnd(const Position& currentPosition, Node* startContai
if (Node* ancestor = treeScope.ancestorInThisScope(currentPosition.computeContainerNode())) {
if (ancestor->contains(startContainerNode))
return Position::afterNode(ancestor);
- return positionBeforeNode(ancestor);
+ return Position::beforeNode(ancestor);
}
if (Node* lastChild = treeScope.rootNode().lastChild())
@@ -139,12 +139,12 @@ Position adjustPositionForStart(const Position& currentPosition, Node* endContai
if (Node* ancestor = treeScope.ancestorInThisScope(currentPosition.computeContainerNode())) {
if (ancestor->contains(endContainerNode))
- return positionBeforeNode(ancestor);
+ return Position::beforeNode(ancestor);
return Position::afterNode(ancestor);
}
if (Node* firstChild = treeScope.rootNode().firstChild())
- return positionBeforeNode(firstChild);
+ return Position::beforeNode(firstChild);
return Position();
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.cpp ('k') | third_party/WebKit/Source/core/editing/SelectionModifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698