diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-06 20:09:06 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-06 20:09:06 +0000 |
commit | 6e9d11ebd13b9e3582697f7480c3d920331dc087 (patch) | |
tree | 6545c2f5ecbdb66c3785a2abdae158464ea63503 /chrome/browser/cocoa/tab_contents_controller.mm | |
parent | e8dec209df749eac3a3e566d96d0fdde3dadbe1e (diff) | |
download | chromium_src-6e9d11ebd13b9e3582697f7480c3d920331dc087.zip chromium_src-6e9d11ebd13b9e3582697f7480c3d920331dc087.tar.gz chromium_src-6e9d11ebd13b9e3582697f7480c3d920331dc087.tar.bz2 |
Don't install the RWHVMac into the view hierarchy until everything has been properly sized. This avoids sending spurrious resize message with incorrect sizes to the renderer.
BUG=15717
TEST=pages should always be the correct size when loaded in bg or foreground. No more flashing a small size then redrawing.
Review URL: http://codereview.chromium.org/155099
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_contents_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_contents_controller.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/tab_contents_controller.mm b/chrome/browser/cocoa/tab_contents_controller.mm index b2ac634..9f676d3 100644 --- a/chrome/browser/cocoa/tab_contents_controller.mm +++ b/chrome/browser/cocoa/tab_contents_controller.mm @@ -26,7 +26,9 @@ [super dealloc]; } -- (void)awakeFromNib { +// Call when the tab view is properly sized and the render widget host view +// should be put into the view hierarchy. +- (void)ensureContentsVisible { [contentsBox_ setContentView:contents_->GetNativeView()]; } |