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

Issue 341713002: Remove Label::PaintText overrides. (Closed)

Created:
6 years, 6 months ago by msw
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Project:
chromium
Visibility:
Public.

Description

Remove Label::PaintText overrides. This is simple cleanup in preparation for a Label rewrite. These overrides were supplying an extra gfx::Canvas flag. Instead, add an explicit label flag for NO_SUBPIXEL_RENDERING. Update some callers and the unit test. TODO(followup): Update more Label::SetBackgroundColor callers. BUG=240037 TEST=No exit warning or sticky keys label rendering changes. R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278213

Patch Set 1 #

Patch Set 2 : Fix a comment typo. #

Total comments: 2

Patch Set 3 : Add an explicit flag and setter, update unit test. #

Patch Set 4 : Sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -56 lines) Patch
M ash/accelerators/exit_warning_handler.cc View 1 2 2 chunks +2 lines, -22 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay.cc View 1 2 3 chunks +2 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/label.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/controls/label_unittest.cc View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
msw
Hey Scott, please take a look; thanks!
6 years, 6 months ago (2014-06-17 23:25:49 UTC) #1
sky
https://codereview.chromium.org/341713002/diff/40001/ash/accelerators/exit_warning_handler.cc File ash/accelerators/exit_warning_handler.cc (right): https://codereview.chromium.org/341713002/diff/40001/ash/accelerators/exit_warning_handler.cc#newcode67 ash/accelerators/exit_warning_handler.cc:67: label->SetBackgroundColor(SK_ColorTRANSPARENT); Having transparent mean no subpixel rendering seems like ...
6 years, 6 months ago (2014-06-18 03:16:30 UTC) #2
msw
Please take another look; thanks! https://codereview.chromium.org/341713002/diff/40001/ash/accelerators/exit_warning_handler.cc File ash/accelerators/exit_warning_handler.cc (right): https://codereview.chromium.org/341713002/diff/40001/ash/accelerators/exit_warning_handler.cc#newcode67 ash/accelerators/exit_warning_handler.cc:67: label->SetBackgroundColor(SK_ColorTRANSPARENT); On 2014/06/18 03:16:29, ...
6 years, 6 months ago (2014-06-18 04:34:29 UTC) #3
sky
LGTM
6 years, 6 months ago (2014-06-18 16:51:38 UTC) #4
msw
The CQ bit was checked by msw@chromium.org
6 years, 6 months ago (2014-06-18 16:53:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/341713002/60001
6 years, 6 months ago (2014-06-18 16:54:07 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 17:04:08 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/23333)
6 years, 6 months ago (2014-06-18 17:04:09 UTC) #8
msw
The CQ bit was checked by msw@chromium.org
6 years, 6 months ago (2014-06-18 17:33:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/341713002/80001
6 years, 6 months ago (2014-06-18 17:33:53 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 01:09:41 UTC) #11
Message was sent while issue was closed.
Change committed as 278213

Powered by Google App Engine
This is Rietveld 408576698