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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 1823623003: [MD] Fix bookmark bar painting bugs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index b642a9be4a733f713083e015cd4f5f8ce8e995aa..a4250e3c70f99f68c69cf2281e2d10b507f10109 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -619,7 +619,6 @@ BookmarkBarView::BookmarkBarView(Browser* browser, BrowserView* browser_view)
if (ui::MaterialDesignController::IsModeMaterial()) {
// Don't let the bookmarks show on top of the location bar while animating.
SetPaintToLayer(true);
- layer()->SetFillsBoundsOpaquely(false);
layer()->SetMasksToBounds(true);
}
@@ -2112,6 +2111,9 @@ void BookmarkBarView::UpdateAppearanceForTheme() {
gfx::CreateVectorIcon(gfx::VectorIconId::OVERFLOW_CHEVRON, 8,
theme_provider->GetColor(
ThemeProperties::COLOR_TOOLBAR_BUTTON_ICON)));
+
+ // Redraw the background.
+ SchedulePaint();
}
bool BookmarkBarView::UpdateOtherAndManagedButtonsVisibility() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698