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

Unified Diff: ui/views/controls/focus_ring.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor 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: ui/views/controls/focus_ring.cc
diff --git a/ui/views/controls/focus_ring.cc b/ui/views/controls/focus_ring.cc
index c8985bf255dd65277b7950e73c0d4289c9998c1e..e3b05dadd11a2be01eb63b65f1989e17f464758e 100644
--- a/ui/views/controls/focus_ring.cc
+++ b/ui/views/controls/focus_ring.cc
@@ -4,6 +4,7 @@
#include "ui/views/controls/focus_ring.h"
+#include "ui/compositor/layer_type.h"
#include "ui/gfx/canvas.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/controls/focusable_border.h"
@@ -87,7 +88,7 @@ void FocusRing::OnPaint(gfx::Canvas* canvas) {
FocusRing::FocusRing()
: override_color_id_(ui::NativeTheme::kColorId_NumColors) {
// A layer is necessary to paint beyond the parent's bounds.
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetFillsBoundsOpaquely(false);
}

Powered by Google App Engine
This is Rietveld 408576698