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

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

Issue 1299873002: ALL-IN-ONE Introduce enum class TextAffinity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T18:08:52 Created 5 years, 4 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: Source/core/html/HTMLTextFormControlElement.cpp
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
index dfd9ff1380b4f76414f711cc087ad32fbcfc32d9..5e180c36bcb567e2f04dc97a2c729b88ba700cea 100644
--- a/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/Source/core/html/HTMLTextFormControlElement.cpp
@@ -402,7 +402,7 @@ VisiblePosition HTMLTextFormControlElement::visiblePositionForIndex(int index) c
return VisiblePosition();
CharacterIterator it(start, end);
it.advance(index - 1);
- return VisiblePosition(it.endPosition(), UPSTREAM);
+ return VisiblePosition(it.endPosition(), TextAffinity::Upstream);
}
int HTMLTextFormControlElement::indexForVisiblePosition(const VisiblePosition& pos) const
« no previous file with comments | « Source/core/editing/spellcheck/SpellChecker.cpp ('k') | Source/core/html/HTMLTextFormControlElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698