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

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
« no previous file with comments | « Source/core/layout/LayoutThemeMac.mm ('k') | Source/platform/mac/ThemeMac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ThemePainterMac.mm
diff --git a/Source/core/paint/ThemePainterMac.mm b/Source/core/paint/ThemePainterMac.mm
index ffd804b7491d0b7258888eafc43c79d642f66402..95c2f5226ef630de0bae6feffc1332afbe3b0efb 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
+ if (!ThemeMac::drawWithFrameDrawsFocusRing() && LayoutTheme::isFocused(o) && o->style()->outlineStyleIsAuto())
+ [popupButton cr_drawFocusRingWithFrame:inflatedRect inView:view];
[popupButton setControlView:nil];
return false;
« no previous file with comments | « Source/core/layout/LayoutThemeMac.mm ('k') | Source/platform/mac/ThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698