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

Issue 2339143003: Revert of BackgroundGradientView: -drawBackground: → -drawRect: (Closed)

Created:
4 years, 3 months ago by Sidney San Martín
Modified:
4 years, 3 months ago
Reviewers:
Nico
CC:
chromium-reviews, asanka, tfarina, dbeam+watch-downloads_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of BackgroundGradientView: -drawBackground: → -drawRect: (patchset #2 id:40001 of https://codereview.chromium.org/2336453002/ ) Reason for revert: AnimatableView inherits from BackgroundGradientView, so a number of other views which *don't* want backgrounds end up inheriting from BackgroundGradientView. This widened the scope of the change beyond what I intended. Original issue's description: > BackgroundGradientView: -drawBackground: → -drawRect: > > BackgroundGradientView had a -drawBackground: method that its clients > were expected to call. This change moves background drawing to > -drawRect: so that the it happens by default. > > Subclasses that did custom drawing already override -drawRect:, but this > removes a couple of overrides that just forwarded to -drawBackground:. > > BUG=589943 > > Committed: https://crrev.com/6b1939a26d2839136aeeba2aa0e359fce0c20281 > Cr-Commit-Position: refs/heads/master@{#418358} TBR=thakis@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=647018 Committed: https://crrev.com/02a4849687aa7a52e3af8959484f7f8b6b9335cf Cr-Commit-Position: refs/heads/master@{#418714}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -13 lines) Patch
M chrome/browser/ui/cocoa/background_gradient_view.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/background_gradient_view.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/background_gradient_view_unittest.mm View 1 chunk +16 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_view_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_view.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Sidney San Martín
Created Revert of BackgroundGradientView: -drawBackground: → -drawRect:
4 years, 3 months ago (2016-09-14 22:12:54 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339143003/1
4 years, 3 months ago (2016-09-14 22:13:27 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 3 months ago (2016-09-14 22:13:29 UTC) #5
Nico
lgtm
4 years, 3 months ago (2016-09-14 22:25:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339143003/1
4 years, 3 months ago (2016-09-14 22:25:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339143003/1
4 years, 3 months ago (2016-09-14 22:27:20 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-14 23:10:13 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 23:13:15 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/02a4849687aa7a52e3af8959484f7f8b6b9335cf
Cr-Commit-Position: refs/heads/master@{#418714}

Powered by Google App Engine
This is Rietveld 408576698