Fix <rdar://5499507> FrameView will always have size (0,0) if its parent...
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Sep 2007 16:26:55 +0000 (16:26 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Sep 2007 16:26:55 +0000 (16:26 +0000)
         Reviewed by Darin.

         * WebView.cpp:
         (WebView::initWithFrame): Set the main FrameView's size to the size of
         the WebView.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25709 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/win/ChangeLog
WebKit/win/WebView.cpp

index 5c0e52a96cbb6372fc9e6d6470dfc6a137dc41bf..452aa3d039dce0717fbaf7cb1c5f027ea076f274 100644 (file)
@@ -1,3 +1,13 @@
+2007-09-24  Adam Roben  <aroben@apple.com>
+
+        Fix <rdar://5499507> FrameView will always have size (0,0) if its parent WebView is never resized
+
+        Reviewed by Darin.
+
+        * WebView.cpp:
+        (WebView::initWithFrame): Set the main FrameView's size to the size of
+        the WebView.
+
 2007-09-21  Kevin McCullough  <kmccullough@apple.com>
 
         - Fixed a syntax guideline mistake.
index 34da2fb9cf8a8a7f787f23d6e6f61bd97e25b208..513683e9bc79b2c9fa0587b9631b0b34940b4d0b 100644 (file)
@@ -1830,7 +1830,7 @@ HRESULT STDMETHODCALLTYPE WebView::initWithFrame(
     webFrame->initWithWebFrameView(0 /*FIXME*/, this, m_page, 0);
     m_mainFrame = webFrame;
     webFrame->Release(); // The WebFrame is owned by the Frame, so release our reference to it.
-
+    m_page->mainFrame()->view()->resize(frame.right - frame.left, frame.bottom - frame.top);
 
     m_page->mainFrame()->tree()->setName(String(frameName, SysStringLen(frameName)));
     m_page->mainFrame()->init();