Chromium Code Reviews| Index: Source/platform/mac/WebCoreNSCellExtras.mm |
| diff --git a/Source/platform/mac/WebCoreNSCellExtras.mm b/Source/platform/mac/WebCoreNSCellExtras.mm |
| index 1b4f2f37c3b4cf6e743edad382165980992522d5..20cf5e2f3e6d5ee4c060cb9d946b40df730597ec 100644 |
| --- a/Source/platform/mac/WebCoreNSCellExtras.mm |
| +++ b/Source/platform/mac/WebCoreNSCellExtras.mm |
| @@ -30,7 +30,10 @@ |
| @implementation NSCell (WebCoreFocusRingDrawing) |
| - (void)_web_drawFocusRingWithFrame:(NSRect)cellFrame inView:(NSView *)controlView |
| -{ |
| +{return; |
|
Robert Sesek
2014/07/17 15:12:32
Spurious return.
keishi
2014/07/18 13:26:55
Done.
|
| + // 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); |