| Index: chrome/browser/ui/cocoa/fast_resize_view.mm
|
| diff --git a/chrome/browser/ui/cocoa/fast_resize_view.mm b/chrome/browser/ui/cocoa/fast_resize_view.mm
|
| index e87a3432974cb473a8f8138b17204fc2079d60d4..71cb27595e2cc79f6bff5a46dff148aab4f24250 100644
|
| --- a/chrome/browser/ui/cocoa/fast_resize_view.mm
|
| +++ b/chrome/browser/ui/cocoa/fast_resize_view.mm
|
| @@ -16,8 +16,6 @@
|
|
|
| @implementation FastResizeView
|
|
|
| -@synthesize contentOffset = contentOffset_;
|
| -
|
| - (void)setFastResizeMode:(BOOL)fastResizeMode {
|
| fastResizeMode_ = fastResizeMode;
|
|
|
| @@ -37,27 +35,14 @@
|
| if (!fastResizeMode_)
|
| return;
|
|
|
| - // Don't draw on the non-content area.
|
| - NSRect clipRect = [self bounds];
|
| - clipRect.size.height -= contentOffset_;
|
| - NSRectClip(clipRect);
|
| -
|
| [[NSColor whiteColor] set];
|
| NSRectFill(dirtyRect);
|
| }
|
|
|
| -- (NSView*)hitTest:(NSPoint)point {
|
| - NSView* result = [super hitTest:point];
|
| - // Never return this view during hit testing. This allows overlapping views to
|
| - // get events even when they are not topmost.
|
| - if ([result isEqual:self])
|
| - return nil;
|
| - return result;
|
| -}
|
| -
|
| @end
|
|
|
| @implementation FastResizeView (PrivateMethods)
|
| +
|
| - (void)layoutSubviews {
|
| // There should never be more than one subview. There can be zero, if we are
|
| // in the process of switching tabs or closing the window. In those cases, no
|
| @@ -79,4 +64,5 @@
|
| [subview setFrame:bounds];
|
| }
|
| }
|
| +
|
| @end
|
|
|