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

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

Issue 1815743002: [MD] Fix bookmark bar painting bugs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 1b63bccd6a92c17224007dfcc7bc46904b36157e..bce50607c1bb76f011d1c5d86c6b41e7bb6c7b0c 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);
Evan Stade 2016/03/18 19:02:04 this is the part that I think may fix the text ren
bruthig 2016/03/18 19:40:32 I'm skeptical here. If the BookmarkButtonView is
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