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

Issue 15746013: Fix cursor positioning regression from r201136. GetCursorPos() shouldn't assume (Closed)

Created:
7 years, 7 months ago by Peter Kasting
Modified:
7 years, 7 months ago
CC:
chromium-reviews, sail+watch_chromium.org, derat+watch_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201944

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -40 lines) Patch
M ui/gfx/render_text.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 chunks +4 lines, -8 lines 0 comments Download
M ui/gfx/render_text_linux.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/gfx/render_text_linux.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M ui/gfx/render_text_mac.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/gfx/render_text_mac.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M ui/gfx/render_text_win.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Kasting
Adding all three of you for discussion of this fix. The current code can change ...
7 years, 7 months ago (2013-05-22 20:26:08 UTC) #1
msw
This looks right, as ToViewPoint should take top-aligned text-space bounds. There's no real reason to ...
7 years, 7 months ago (2013-05-23 19:54:26 UTC) #2
Peter Kasting
Are you comfortable giving LGTM, then? https://codereview.chromium.org/15746013/diff/1/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/15746013/diff/1/ui/gfx/render_text.h#newcode375 ui/gfx/render_text.h:375: virtual void GetGlyphBounds(size_t ...
7 years, 7 months ago (2013-05-23 21:01:29 UTC) #3
Alexei Svitkine (slow)
LGTM (put please wait for msw's too) https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text.h#newcode373 ui/gfx/render_text.h:373: // xspan->is_reversed(). ...
7 years, 7 months ago (2013-05-23 21:03:47 UTC) #4
Peter Kasting
https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text.h#newcode373 ui/gfx/render_text.h:373: // xspan->is_reversed(). This does not return a Rect because ...
7 years, 7 months ago (2013-05-23 21:06:58 UTC) #5
msw
LGTM with nits. https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text_mac.cc#newcode72 ui/gfx/render_text_mac.cc:72: // TODO(asvitkine): Implement this. http://crbug.com/131618 nit: ...
7 years, 7 months ago (2013-05-23 21:07:27 UTC) #6
Peter Kasting
https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): https://codereview.chromium.org/15746013/diff/26001/ui/gfx/render_text_mac.cc#newcode72 ui/gfx/render_text_mac.cc:72: // TODO(asvitkine): Implement this. http://crbug.com/131618 On 2013/05/23 21:07:27, msw ...
7 years, 7 months ago (2013-05-23 21:09:10 UTC) #7
Peter Kasting
7 years, 7 months ago (2013-05-24 00:49:08 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r201944 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698