2011-06-30 Balazs Kelemen <kbalazs@webkit.org>
authorkbalazs@webkit.org <kbalazs@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 08:00:31 +0000 (08:00 +0000)
committerkbalazs@webkit.org <kbalazs@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 08:00:31 +0000 (08:00 +0000)
        Reviewed by Kenneth Rohde Christiansen.

        [Qt][WK2] Implement the rest of WTR::PlatformWebView
        https://bugs.webkit.org/show_bug.cgi?id=63630

        * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
        (WTR::PlatformWebView::windowFrame):
        (WTR::PlatformWebView::setWindowFrame):

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

Tools/ChangeLog
Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp

index e0a4fea..f871e24 100644 (file)
@@ -1,3 +1,14 @@
+2011-06-30  Balazs Kelemen  <kbalazs@webkit.org>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [Qt][WK2] Implement the rest of WTR::PlatformWebView
+        https://bugs.webkit.org/show_bug.cgi?id=63630
+
+        * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
+        (WTR::PlatformWebView::windowFrame):
+        (WTR::PlatformWebView::setWindowFrame):
+
 2011-06-29  Dirk Pranke  <dpranke@chromium.org>
 
         Reviewed by Adam Barth.
index 6d6f262..8594d41 100644 (file)
@@ -88,19 +88,18 @@ void PlatformWebView::focus()
 
 WKRect PlatformWebView::windowFrame()
 {
-    // Implement.
-
+    QRect windowRect = m_window->geometry();
     WKRect wkFrame;
-    wkFrame.origin.x = 0;
-    wkFrame.origin.y = 0;
-    wkFrame.size.width = 0;
-    wkFrame.size.height = 0;
+    wkFrame.origin.x = windowRect.x();
+    wkFrame.origin.y = windowRect.y();
+    wkFrame.size.width = windowRect.size().width();
+    wkFrame.size.height = windowRect.size().height();
     return wkFrame;
 }
 
-void PlatformWebView::setWindowFrame(WKRect)
+void PlatformWebView::setWindowFrame(WKRect rect)
 {
-    // Implement.
+    m_window->setGeometry(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
 }
 
 } // namespace WTR