Title: [90095] trunk/Tools
Revision
90095
Author
[email protected]
Date
2011-06-30 01:00:31 -0700 (Thu, 30 Jun 2011)

Log Message

2011-06-30  Balazs Kelemen  <[email protected]>

        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):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (90094 => 90095)


--- trunk/Tools/ChangeLog	2011-06-30 07:43:39 UTC (rev 90094)
+++ trunk/Tools/ChangeLog	2011-06-30 08:00:31 UTC (rev 90095)
@@ -1,3 +1,14 @@
+2011-06-30  Balazs Kelemen  <[email protected]>
+
+        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  <[email protected]>
 
         Reviewed by Adam Barth.

Modified: trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp (90094 => 90095)


--- trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp	2011-06-30 07:43:39 UTC (rev 90094)
+++ trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp	2011-06-30 08:00:31 UTC (rev 90095)
@@ -88,19 +88,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 rect)
 {
-    // Implement.
+    m_window->setGeometry(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
 }
 
 } // namespace WTR
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to