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

Unified Diff: ui/gfx/selection_model.cc

Issue 8044004: Clean up of SelectionModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: ui/gfx/selection_model.cc
===================================================================
--- ui/gfx/selection_model.cc (revision 103192)
+++ ui/gfx/selection_model.cc (working copy)
@@ -15,7 +15,10 @@
}
SelectionModel::SelectionModel(size_t start, size_t end) {
- Init(start, end, end, LEADING);
+ if (start < end)
msw 2011/09/29 02:20:21 Perhaps this condition deserves an explanation: "T
xji 2011/10/03 23:18:57 this ctor is removed.
+ Init(start, end, end, TRAILING_OF_PREVIOUS_GRAPHEME);
+ else
+ Init(start, end, end, LEADING);
}
SelectionModel::SelectionModel(size_t end,

Powered by Google App Engine
This is Rietveld 408576698