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

Issue 1018463004: Fix focus rectangle for label. (Closed)

Created:
5 years, 9 months ago by Jun Mukai
Modified:
5 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix focus rectangle for label. The current focus rectangle logic is wrong -- it's always drawn outside of local bounds, which is not drawn actually. The expected behavior is to draw the focus rectangle around the actual text. BUG=467510 R=sky@chromium.org TEST=the new test case covers Committed: https://crrev.com/26abb0bf78b3e67e11b7592d057a7f536bb40f3d Cr-Commit-Position: refs/heads/master@{#320943}

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressed comments #

Patch Set 3 : GetFocusBounds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -20 lines) Patch
M ui/gfx/render_text.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 chunks +11 lines, -11 lines 0 comments Download
M ui/views/controls/label.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 chunks +23 lines, -5 lines 0 comments Download
M ui/views/controls/label_unittest.cc View 1 2 3 chunks +69 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Jun Mukai
5 years, 9 months ago (2015-03-16 20:45:01 UTC) #1
sky
https://codereview.chromium.org/1018463004/diff/1/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/1018463004/diff/1/ui/gfx/render_text.h#newcode466 ui/gfx/render_text.h:466: Vector2d GetLineOffset(size_t line_number); Move implementation to match new position. ...
5 years, 9 months ago (2015-03-16 21:29:57 UTC) #2
Jun Mukai
https://codereview.chromium.org/1018463004/diff/1/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/1018463004/diff/1/ui/gfx/render_text.h#newcode466 ui/gfx/render_text.h:466: Vector2d GetLineOffset(size_t line_number); On 2015/03/16 21:29:57, sky wrote: > ...
5 years, 9 months ago (2015-03-16 22:05:38 UTC) #3
sky
https://codereview.chromium.org/1018463004/diff/1/ui/views/controls/label.cc File ui/views/controls/label.cc (right): https://codereview.chromium.org/1018463004/diff/1/ui/views/controls/label.cc#newcode345 ui/views/controls/label.cc:345: return gfx::Rect(); On 2015/03/16 22:05:37, Jun Mukai wrote: > ...
5 years, 9 months ago (2015-03-16 22:56:09 UTC) #4
Jun Mukai
https://codereview.chromium.org/1018463004/diff/1/ui/views/controls/label.cc File ui/views/controls/label.cc (right): https://codereview.chromium.org/1018463004/diff/1/ui/views/controls/label.cc#newcode345 ui/views/controls/label.cc:345: return gfx::Rect(); On 2015/03/16 22:56:09, sky wrote: > On ...
5 years, 9 months ago (2015-03-17 00:03:47 UTC) #5
sky
LGTM
5 years, 9 months ago (2015-03-17 17:12:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018463004/40001
5 years, 9 months ago (2015-03-17 17:14:28 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-17 18:11:32 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 18:14:31 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/26abb0bf78b3e67e11b7592d057a7f536bb40f3d
Cr-Commit-Position: refs/heads/master@{#320943}

Powered by Google App Engine
This is Rietveld 408576698