| Index: Source/platform/mac/WebCoreNSCellExtras.mm
|
| diff --git a/Source/platform/mac/WebCoreNSCellExtras.mm b/Source/platform/mac/WebCoreNSCellExtras.mm
|
| index 5813df1a572ebfb50f716ff09e85771d9b99976b..1b4f2f37c3b4cf6e743edad382165980992522d5 100644
|
| --- a/Source/platform/mac/WebCoreNSCellExtras.mm
|
| +++ b/Source/platform/mac/WebCoreNSCellExtras.mm
|
| @@ -25,13 +25,12 @@
|
|
|
| #import "platform/mac/WebCoreNSCellExtras.h"
|
|
|
| +#if !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
|
| +
|
| @implementation NSCell (WebCoreFocusRingDrawing)
|
|
|
| -- (void)cr_drawFocusRingWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
|
| +- (void)_web_drawFocusRingWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
|
| {
|
| - // FIXME: Remove this check when we drop support for Mac OS X 10.6
|
| - if (![self respondsToSelector:@selector(drawFocusRingMaskWithFrame:inView:)])
|
| - return;
|
| CGContextRef cgContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
|
| CGContextSaveGState(cgContext);
|
| NSSetFocusRingStyle(NSFocusRingOnly);
|
| @@ -42,3 +41,5 @@
|
| }
|
|
|
| @end
|
| +
|
| +#endif // !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
|
|
|