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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.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
« no previous file with comments | « third_party/WebKit/Source/core/editing/serializers/Serialization.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
index d6f88ea12d07f33eec04992d8a6ffcfb0c03fe9f..7c6211deb45b57772666ed2b880fccc8f7a2090e 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
@@ -292,7 +292,7 @@ static Position positionForIndex(HTMLElement* innerEditor, int index)
ASSERT(remainingCharactersToMoveForward >= 0);
if (node.hasTagName(brTag)) {
if (remainingCharactersToMoveForward == 0)
- return positionBeforeNode(&node);
+ return Position::beforeNode(&node);
--remainingCharactersToMoveForward;
lastBrOrText = &node;
continue;
@@ -317,7 +317,7 @@ static int indexForPosition(HTMLElement* innerEditor, const Position& passedPosi
if (!innerEditor || !innerEditor->contains(passedPosition.anchorNode()) || passedPosition.isNull())
return 0;
- if (positionBeforeNode(innerEditor) == passedPosition)
+ if (Position::beforeNode(innerEditor) == passedPosition)
return 0;
int index = 0;
« no previous file with comments | « third_party/WebKit/Source/core/editing/serializers/Serialization.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698