| Index: chrome/browser/ui/cocoa/gradient_button_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/gradient_button_cell.mm b/chrome/browser/ui/cocoa/gradient_button_cell.mm
|
| index 323916e5c048a96c1021d1b1f804bbdf14edd383..c638b78dbe91c5d113a9191e23ae2d68e5108536 100644
|
| --- a/chrome/browser/ui/cocoa/gradient_button_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/gradient_button_cell.mm
|
| @@ -285,15 +285,6 @@ static const NSTimeInterval kAnimationHideDuration = 0.4;
|
| shouldTheme_ = shouldTheme;
|
| }
|
|
|
| -- (NSImage*)overlayImage {
|
| - return overlayImage_.get();
|
| -}
|
| -
|
| -- (void)setOverlayImage:(NSImage*)image {
|
| - overlayImage_.reset([image retain]);
|
| - [[self controlView] setNeedsDisplay:YES];
|
| -}
|
| -
|
| - (NSBackgroundStyle)interiorBackgroundStyle {
|
| // Never lower the interior, since that just leads to a weird shadow which can
|
| // often interact badly with the theme.
|
| @@ -682,17 +673,6 @@ static const NSTimeInterval kAnimationHideDuration = 0.4;
|
| [super drawInteriorWithFrame:NSOffsetRect(cellFrame, 0, lineWidth)
|
| inView:controlView];
|
| }
|
| -
|
| - if (overlayImage_) {
|
| - NSRect imageRect = NSZeroRect;
|
| - imageRect.size = [overlayImage_ size];
|
| - [overlayImage_ drawInRect:[self imageRectForBounds:cellFrame]
|
| - fromRect:imageRect
|
| - operation:NSCompositeSourceOver
|
| - fraction:[self isEnabled] ? 1.0 : 0.5
|
| - respectFlipped:YES
|
| - hints:nil];
|
| - }
|
| }
|
|
|
| - (int)verticalTextOffset {
|
|
|