summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 19:46:05 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 19:46:05 +0000
commitd649bc3921234fbd0d3d053f1018f527bb61341e (patch)
treefd36b9ef7e308e056c6beaff4050846dd887c0c6 /chrome
parent628346f75185125c2a42b0f7062e872ca76d9fb1 (diff)
downloadchromium_src-d649bc3921234fbd0d3d053f1018f527bb61341e.zip
chromium_src-d649bc3921234fbd0d3d053f1018f527bb61341e.tar.gz
chromium_src-d649bc3921234fbd0d3d053f1018f527bb61341e.tar.bz2
Commits bug issuereview 62043 (http://codereview.chromium.org/62043)
from m0. BUG-9393 TEST=see bug Review URL: http://codereview.chromium.org/62067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/views/controls/text_field.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/views/controls/text_field.cc b/chrome/views/controls/text_field.cc
index 3818836..fa35854 100644
--- a/chrome/views/controls/text_field.cc
+++ b/chrome/views/controls/text_field.cc
@@ -343,9 +343,9 @@ std::wstring TextField::Edit::GetSelectedText() const {
}
void TextField::Edit::SelectAll() {
- // Using (0, -1) here is equivalent to calling SetSelAll(); both will select
- // the "phantom newline" that we're trying to avoid.
- SetSel(0, GetTextLength());
+ // Select from the end to the front so that the first part of the text is
+ // always visible.
+ SetSel(GetTextLength(), 0);
}
void TextField::Edit::ClearSelection() {