| Index: Source/platform/mac/ThemeMac.mm
|
| diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm
|
| index 4e702e1b7071e584c8c439a3175eed4eda8ffcbb..79040eef95a1f9fd2287fe3f81377d71bdc89a3b 100644
|
| --- a/Source/platform/mac/ThemeMac.mm
|
| +++ b/Source/platform/mac/ThemeMac.mm
|
| @@ -168,13 +168,13 @@ static void updateStates(NSCell* cell, ControlStates states)
|
| if (enabled != oldEnabled)
|
| [cell setEnabled:enabled];
|
|
|
| -#if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
|
| - // Focused state
|
| - bool oldFocused = [cell showsFirstResponder];
|
| - bool focused = states & FocusControlState;
|
| - if (focused != oldFocused)
|
| - [cell setShowsFirstResponder:focused];
|
| -#endif
|
| + if (![cell respondsToSelector:@selector(drawFocusRingMaskWithFrame:inView:)]) {
|
| + // Focused state
|
| + bool oldFocused = [cell showsFirstResponder];
|
| + bool focused = states & FocusControlState;
|
| + if (focused != oldFocused)
|
| + [cell setShowsFirstResponder:focused];
|
| + }
|
|
|
| // Checked and Indeterminate
|
| bool oldIndeterminate = [cell state] == NSMixedState;
|
|
|