Reviewed by Rob Buis.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 May 2007 22:24:22 +0000 (22:24 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 May 2007 22:24:22 +0000 (22:24 +0000)
        - call Frame::init as needed - this prevents crashes but pages don't appear.

        * Api/qwebframe.cpp:
        (QWebFramePrivate::init):
        * WebKitPart/WebKitPart.cpp:
        (WebKitPart::initView):

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

WebKitQt/Api/qwebframe.cpp
WebKitQt/ChangeLog
WebKitQt/WebKitPart/WebKitPart.cpp

index 19160678723d0bc980ac87d6168f5058db7f5863..e0c042402204de1b10d520b8891776a34eb37e9a 100644 (file)
@@ -79,6 +79,7 @@ void QWebFramePrivate::init(QWebFrame *qframe, WebCore::Page *page, QWebFrameDat
     frameView->setScrollArea(qframe);
     frameView->setAllowsScrolling(frameData->allowsScrolling);
     frame->setView(frameView.get());
+    frame->init();
     eventHandler = frame->eventHandler();
 }
 
index 1874ba879c91289111337b595a4a7cbecc3c6cc6..838ea766fde21fcb5d2d1778ac3aeda5f4f74991 100644 (file)
@@ -1,3 +1,14 @@
+2007-05-12  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Rob Buis.
+        
+        - call Frame::init as needed - this prevents crashes but pages don't appear.
+
+        * Api/qwebframe.cpp:
+        (QWebFramePrivate::init):
+        * WebKitPart/WebKitPart.cpp:
+        (WebKitPart::initView):
+
 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
 
         Reviewed by Ada.
index b447d3a4875cfd1d749faccb2d46860244c2a2e7..4a2c868c1b27c7cbc4fb257f77d24b553ad21259 100644 (file)
@@ -123,6 +123,8 @@ void WebKitPart::initView(QWidget* parentWidget, GUIProfile prof)
     m_frame->setView(frameView);
     m_frameView->setParentWidget(parentWidget);
 
+    m_frame->init();
+
     // Initialize KParts widget...
     setWidget(m_frame->view()->qwidget());
 }