diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 00:49:06 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 00:49:06 +0000 |
commit | 6f938f1bcd879f6a35746b716f21c9692e31bc73 (patch) | |
tree | 40a3f685689440deeaa364b3d42c9ed1029e7a19 /ui/gfx/render_text_win.h | |
parent | 8a09bc7686d1ca1cf9747a8c072446132c0bd491 (diff) | |
download | chromium_src-6f938f1bcd879f6a35746b716f21c9692e31bc73.zip chromium_src-6f938f1bcd879f6a35746b716f21c9692e31bc73.tar.gz chromium_src-6f938f1bcd879f6a35746b716f21c9692e31bc73.tar.bz2 |
Fix cursor positioning regression from r201136. GetCursorPos() shouldn't assume
vertically-centered text.
BUG=242801
TEST=Arrow through the omnibox in 200% mode and ensure the cursor does not appear vertically too low
R=asvitkine@chromium.org, msw@chromium.org
Review URL: https://codereview.chromium.org/15746013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/render_text_win.h')
-rw-r--r-- | ui/gfx/render_text_win.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gfx/render_text_win.h b/ui/gfx/render_text_win.h index e8ec253..704829d 100644 --- a/ui/gfx/render_text_win.h +++ b/ui/gfx/render_text_win.h @@ -80,9 +80,7 @@ class RenderTextWin : public RenderText { const SelectionModel& selection, VisualCursorDirection direction) OVERRIDE; virtual void SetSelectionModel(const SelectionModel& model) OVERRIDE; - virtual void GetGlyphBounds(size_t index, - ui::Range* xspan, - int* height) OVERRIDE; + virtual ui::Range GetGlyphBounds(size_t index) OVERRIDE; virtual std::vector<Rect> GetSubstringBounds(const ui::Range& range) OVERRIDE; virtual size_t TextIndexToLayoutIndex(size_t index) const OVERRIDE; virtual size_t LayoutIndexToTextIndex(size_t index) const OVERRIDE; |