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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.cc

Issue 1560723002: Revert of Moved parent_->SchedulePaint() to Views::SetFillsBoundsOpaquely() and Views::ScheduleP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | ui/views/view.h » ('j') | ui/views/view_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar/toolbar_button.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
index 7627bafdb519caedcb499a484795bf515448d8b5..808e450ab02544f0e0ca7a8870b5297cc3cfd350 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
@@ -230,6 +230,10 @@
layer()->Add(ink_drop_layer);
layer()->StackAtBottom(ink_drop_layer);
+
+ // Invalidates the contents of the parent's layer which may contain
+ // a stale close/reload icon that should not remain visible.
+ parent()->SchedulePaint();
}
void ToolbarButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
« no previous file with comments | « no previous file | ui/views/view.h » ('j') | ui/views/view_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698