Make window resizing work
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 10:37:06 +0000 (10:37 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 10:37:06 +0000 (10:37 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19215 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebpage.cpp
WebKitQt/Api/qwebpage.h
WebKitQt/ChangeLog
WebKitQt/WebCoreSupport/ChromeClientQt.cpp

index b9ddc5f746152eac51d7113436cc5a921aba42b2..49399a70bb59a7eda7ccab4dcc9dd4d93dd11f7e 100644 (file)
@@ -194,4 +194,9 @@ QWebPage *QWebPage::createWindow()
     return 0;
 }
 
+void QWebPage::setWindowGeometry(const QRect& geom)
+{
+    Q_UNUSED(geom)
+}
+
 #include "qwebpage.moc"
index 54384706492bc06a04a9c7f891c61b3c23856995..ae8708b5e47e23b6139ef221e232c4efdaef5201 100644 (file)
@@ -77,6 +77,8 @@ public slots:
     void goForward();
     void goToHistoryItem(const QWebHistoryItem &item);
 
+    virtual void setWindowGeometry(const QRect& geom);
+
 signals:
     /**
      * Signal is emitted when load is started on one of the child
index c95f241c187feb1b9b130d257548f89cd40c0185..8349423cd1f56705a35ad19a9a3d653607a968eb 100644 (file)
@@ -1,3 +1,13 @@
+2007-01-29  George Staikos  <staikos@kde.org>
+
+        Make window resizing work.
+
+        * Api/qwebpage.cpp:
+        (QWebPage::setWindowGeometry):
+        * Api/qwebpage.h:
+        * WebCoreSupport/ChromeClientQt.cpp:
+        (WebCore::ChromeClientQt::setWindowRect):
+
 2007-01-29  George Staikos  <staikos@kde.org>
 
         Make popup windows work.
index 09512bbb92b1f3e933499ac80472274025d7e5b1..6db0d02d7ce477f2f7d1f8e979f6558e96fc700b 100644 (file)
@@ -57,8 +57,8 @@ void ChromeClientQt::setWindowRect(const FloatRect& rect)
 {
     if (!m_webPage)
         return;
-//     m_webPage->emit setWindowRect(QRect(qRound(r.x()), qRound(r.y()),
-//                                         qRound(r.width()), qRound(r.height())));
+    m_webPage->setWindowGeometry(QRect(qRound(rect.x()), qRound(rect.y()),
+                            qRound(rect.width()), qRound(rect.height())));
 }