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

Issue 184273010: Fix artifacts on the Apps button with CoreAnimation. (Closed)

Created:
6 years, 9 months ago by ccameron
Modified:
6 years, 9 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix artifacts on the Apps button with CoreAnimation. Without CoreAnimation, the bookmark bar buttons got redraw messages whenever they were damaged (like, moved around, made visible, etc). With CoreAnimation, the bookmark bar buttons have their drawn contents cached and therefore need to be explicitly told to re-draw. The function BookmarkBarController::layoutSubviews should do this, but it only iterates through the buttons in the buttons_ array, which skips the "apps" and "other" bookmark buttons. This patch adds those two back in. The general question of "where else is the apps button assumed to be part of the buttons_ array" is not answered. BUG=340238 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255347

Patch Set 1 #

Patch Set 2 : 500s #

Total comments: 2

Patch Set 3 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ccameron
Another solution to this would be to just call cr_recursivelySetNeedsDisplay on self at that point. ...
6 years, 9 months ago (2014-03-06 00:56:51 UTC) #1
Avi (use Gerrit)
LGTM https://codereview.chromium.org/184273010/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right): https://codereview.chromium.org/184273010/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#newcode486 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:486: [otherBookmarksButton_ setNeedsDisplay:YES]; Explain with a brief comment?
6 years, 9 months ago (2014-03-06 03:42:48 UTC) #2
ccameron
Thanks! https://codereview.chromium.org/184273010/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right): https://codereview.chromium.org/184273010/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#newcode486 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:486: [otherBookmarksButton_ setNeedsDisplay:YES]; On 2014/03/06 03:42:48, Avi wrote: > ...
6 years, 9 months ago (2014-03-06 07:06:54 UTC) #3
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 9 months ago (2014-03-06 07:09:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/184273010/40001
6 years, 9 months ago (2014-03-06 07:09:49 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 08:36:42 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276193
6 years, 9 months ago (2014-03-06 08:36:43 UTC) #7
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 9 months ago (2014-03-06 09:15:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/184273010/40001
6 years, 9 months ago (2014-03-06 09:16:19 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 14:30:26 UTC) #10
Message was sent while issue was closed.
Change committed as 255347

Powered by Google App Engine
This is Rietveld 408576698