Index: chrome/browser/ui/cocoa/hover_close_button.mm |
diff --git a/chrome/browser/ui/cocoa/hover_close_button.mm b/chrome/browser/ui/cocoa/hover_close_button.mm |
index cd767a84bde7759d0f37140e049e426a3c996668..be82dc52a8a71f22519de5974abb0d40df08b6f1 100644 |
--- a/chrome/browser/ui/cocoa/hover_close_button.mm |
+++ b/chrome/browser/ui/cocoa/hover_close_button.mm |
@@ -96,14 +96,6 @@ NSString* const kFadeOutValueKeyPath = @"fadeOutValue"; |
switch(self.hoverState) { |
case kHoverStateMouseOver: |
- [image drawInRect:destRect |
- fromRect:imageRect |
- operation:NSCompositeSourceOver |
- fraction:1.0 |
- respectFlipped:YES |
- hints:nil]; |
- break; |
- |
case kHoverStateMouseDown: |
[image drawInRect:destRect |
fromRect:imageRect |
@@ -140,6 +132,12 @@ NSString* const kFadeOutValueKeyPath = @"fadeOutValue"; |
} |
} |
+- (void)drawFocusRingMask { |
+ // Match the hover image's shape. |
+ NSRect circleRect = NSInsetRect([self bounds], 2, 2); |
+ [[NSBezierPath bezierPathWithOvalInRect:circleRect] fill]; |
+} |
+ |
- (void)setFadeOutValue:(CGFloat)value { |
[self setNeedsDisplay]; |
} |