Title: [90693] trunk/Tools
Revision
90693
Author
[email protected]
Date
2011-07-10 11:04:07 -0700 (Sun, 10 Jul 2011)

Log Message

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

Patch by Balazs Kelemen <[email protected]> on 2011-07-10
Reviewed by Kenneth Rohde Christiansen.

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

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (90692 => 90693)


--- trunk/Tools/ChangeLog	2011-07-10 16:32:52 UTC (rev 90692)
+++ trunk/Tools/ChangeLog	2011-07-10 18:04:07 UTC (rev 90693)
@@ -1,3 +1,14 @@
+2011-07-10  Balazs Kelemen  <[email protected]>
+
+        [Qt][WK2] Implement the rest of WTR::PlatformWebView
+        https://bugs.webkit.org/show_bug.cgi?id=63630
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
+        (WTR::PlatformWebView::windowFrame):
+        (WTR::PlatformWebView::setWindowFrame):
+
 2011-07-10  Mark Rowe  <[email protected]>
 
         Teach build-webkit how to find the latest WebKitSystemInterface binary.

Modified: trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp (90692 => 90693)


--- trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp	2011-07-10 16:32:52 UTC (rev 90692)
+++ trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp	2011-07-10 18:04:07 UTC (rev 90693)
@@ -89,19 +89,18 @@
 
 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 wkRect)
 {
-    // Implement.
+    m_window->setGeometry(wkRect.origin.x, wkRect.origin.y, wkRect.size.width, wkRect.size.height);
 }
 
 } // namespace WTR
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to