Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
index 85d1f5008fbf48830b32c17e7dd69f1341d6c71d..5961fca36ccfe979413536ec9b592a9733eb89ef 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
@@ -310,22 +310,8 @@ willPositionSheet:(NSWindow*)sheet |
NSView* tabContentView = [self tabContentArea]; |
NSRect tabContentFrame = [tabContentView frame]; |
- bool contentShifted = |
- NSMaxY(tabContentFrame) != NSMaxY(newFrame) || |
- NSMinX(tabContentFrame) != NSMinX(newFrame); |
- |
tabContentFrame = newFrame; |
[tabContentView setFrame:tabContentFrame]; |
- |
- // If the relayout shifts the content area up or down, let the renderer know. |
- if (contentShifted) { |
- WebContents* contents = [self webContents]; |
- if (contents) { |
- RenderWidgetHostView* rwhv = contents->GetRenderWidgetHostView(); |
- if (rwhv) |
- rwhv->WindowFrameChanged(); |
- } |
- } |
} |
- (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression { |