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

Unified Diff: Source/platform/mac/ThemeMac.mm

Issue 368003002: Check if drawFocusRingMaskWithFrame:inView: exists when drawing focus ring (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/rendering/RenderThemeChromiumMac.mm ('k') | Source/platform/mac/WebCoreNSCellExtras.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ThemeMac.mm
diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm
index 4e702e1b7071e584c8c439a3175eed4eda8ffcbb..07b627e7a0f43045cf7a160de4ae11a7295ba243 100644
--- a/Source/platform/mac/ThemeMac.mm
+++ b/Source/platform/mac/ThemeMac.mm
@@ -168,13 +168,11 @@ static void updateStates(NSCell* cell, ControlStates states)
if (enabled != oldEnabled)
[cell setEnabled:enabled];
-#if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
Robert Sesek 2014/07/02 14:45:42 Why is it safe to remove this?
keishi 2014/07/02 15:54:05 Hmm. setShowsFirstResponder draws the focus ring o
keishi 2014/07/07 09:16:07 I confirmed by building using 10.9 SDK and running
// Focused state
bool oldFocused = [cell showsFirstResponder];
bool focused = states & FocusControlState;
if (focused != oldFocused)
[cell setShowsFirstResponder:focused];
-#endif
// Checked and Indeterminate
bool oldIndeterminate = [cell state] == NSMixedState;
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumMac.mm ('k') | Source/platform/mac/WebCoreNSCellExtras.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698