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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp

Issue 2341053002: Mark the createVisiblePosition overloads as deprecated (Closed)
Patch Set: minor revision Created 4 years, 3 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/html/HTMLTextFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
index 9a96b4a188a4ead9bf3468237d20040b6bae3411..c2f5ff0be1d66cb6bd43e3631d09e4429f683e36 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp
@@ -400,7 +400,7 @@ VisiblePosition HTMLTextFormControlElement::visiblePositionForIndex(int index) c
return VisiblePosition();
CharacterIterator it(start, end);
it.advance(index - 1);
- return createVisiblePosition(it.endPosition(), TextAffinity::Upstream);
+ return createVisiblePositionDeprecated(it.endPosition(), TextAffinity::Upstream);
}
int HTMLTextFormControlElement::indexForVisiblePosition(const VisiblePosition& pos) const

Powered by Google App Engine
This is Rietveld 408576698