Fix the Qt build.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 15:35:44 +0000 (15:35 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 15:35:44 +0000 (15:35 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27567 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/qt/Api/qwebpage.cpp
WebKit/qt/ChangeLog

index 0b2354ca7d0e928428fc5c11f0886c5a549a123c..7038b1d463d19821c0acd419fc1e134c42330258 100644 (file)
@@ -56,6 +56,7 @@
 #include "RefPtr.h"
 #include "HashMap.h"
 #include "HitTestResult.h"
+#include "WindowFeatures.h"
 #include "LocalizedStrings.h"
 
 #include <QDebug>
@@ -414,10 +415,12 @@ static WebCore::FrameLoadRequest frameLoadRequest(const QUrl &url, WebCore::Fram
 
 static void openNewWindow(const QUrl& url, WebCore::Frame* frame)
 {
-    if (Page* oldPage = frame->page())
+    if (Page* oldPage = frame->page()) {
+        WindowFeatures features;
         if (Page* newPage = oldPage->chrome()->createWindow(frame,
-                frameLoadRequest(url, frame)))
+                frameLoadRequest(url, frame), features))
             newPage->chrome()->show();
+    }
 }
 
 void QWebPage::triggerAction(WebAction action, bool checked)
index 88310f74bd22e5c0a246ac01fb5891589b5b5d6b..dc91f8d6fcd20e12c20c262bf5dafdd5bb882d11 100644 (file)
@@ -1,3 +1,14 @@
+2007-11-07  Simon Hausmann  <hausmann@kde.org>
+
+        Build fix, reviewed by nobody.
+
+        Fix the Qt build by setting up WindowFeatures before calling
+        createWindow on the Chrome. This is similar to openNewWindow in
+        page/ContextMenuController.cpp
+
+        * Api/qwebpage.cpp:
+        (openNewWindow):
+
 2007-11-07  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.