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

Unified Diff: Source/core/paint/ThemePainterMac.mm

Issue 368003002: Check if drawFocusRingMaskWithFrame:inView: exists when drawing focus ring (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/core/paint/ThemePainterMac.mm
diff --git a/Source/core/paint/ThemePainterMac.mm b/Source/core/paint/ThemePainterMac.mm
index 815775425485e2435c375a586bbcc83e3f9adf4d..4e93b220ec5bee84a9ba349741d6556761011689 100644
--- a/Source/core/paint/ThemePainterMac.mm
+++ b/Source/core/paint/ThemePainterMac.mm
@@ -184,10 +184,8 @@ bool ThemePainterMac::paintMenuList(LayoutObject* o, const PaintInfo& paintInfo,
NSView *view = m_layoutTheme.documentViewFor(o);
[popupButton drawWithFrame:inflatedRect inView:view];
-#if !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
if (LayoutTheme::isFocused(o) && o->style()->outlineStyleIsAuto())
[popupButton _web_drawFocusRingWithFrame:inflatedRect inView:view];
-#endif
[popupButton setControlView:nil];
return false;

Powered by Google App Engine
This is Rietveld 408576698