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

Unified Diff: views/controls/textfield/native_textfield_views_unittest.cc

Issue 7461102: modification to RenderText for inheritance/SelectionModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: update per comments Created 9 years, 5 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: views/controls/textfield/native_textfield_views_unittest.cc
===================================================================
--- views/controls/textfield/native_textfield_views_unittest.cc (revision 95245)
+++ views/controls/textfield/native_textfield_views_unittest.cc (working copy)
@@ -220,7 +220,8 @@
int GetCursorPositionX(int cursor_pos) {
gfx::RenderText* render_text = textfield_view_->GetRenderText();
- return render_text->GetCursorBounds(cursor_pos, false).x();
+ return render_text->GetCursorBounds(
+ gfx::SelectionModel(cursor_pos), false).x();
}
// We need widget to populate wrapper class.
« no previous file with comments | « views/controls/textfield/native_textfield_views.cc ('k') | views/controls/textfield/textfield_views_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698