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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: fix comments Created 3 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
Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
index 9d1ff7d07306d10813cb6f2165dd99d895bf867c..eb02b9e0e9ee65488910bd49cad2f804b92e545e 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
@@ -143,14 +143,14 @@ void IconLabelBubbleView::OnNativeThemeChanged(
}
void IconLabelBubbleView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
- image()->SetPaintToLayer(true);
+ image()->SetPaintToLayer();
image()->layer()->SetFillsBoundsOpaquely(false);
InkDropHostView::AddInkDropLayer(ink_drop_layer);
}
void IconLabelBubbleView::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
InkDropHostView::RemoveInkDropLayer(ink_drop_layer);
- image()->SetPaintToLayer(false);
+ image()->DestroyLayer();
}
std::unique_ptr<views::InkDropHighlight>

Powered by Google App Engine
This is Rietveld 408576698