Changeset 90693 in webkit


Ignore:
Timestamp:
Jul 10, 2011 11:04:07 AM (13 years ago)
Author:
benjamin.poulain@nokia.com
Message:

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

Patch by Balazs Kelemen <kbalazs@webkit.org> on 2011-07-10
Reviewed by Kenneth Rohde Christiansen.

  • WebKitTestRunner/qt/PlatformWebViewQt.cpp:

(WTR::PlatformWebView::windowFrame):
(WTR::PlatformWebView::setWindowFrame):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90689 r90693  
     12011-07-10  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        [Qt][WK2] Implement the rest of WTR::PlatformWebView
     4        https://bugs.webkit.org/show_bug.cgi?id=63630
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
     9        (WTR::PlatformWebView::windowFrame):
     10        (WTR::PlatformWebView::setWindowFrame):
     11
    1122011-07-10  Mark Rowe  <mrowe@apple.com>
    213
  • trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp

    r90458 r90693  
    9090WKRect PlatformWebView::windowFrame()
    9191{
    92     // Implement.
    93 
     92    QRect windowRect = m_window->geometry();
    9493    WKRect wkFrame;
    95     wkFrame.origin.x = 0;
    96     wkFrame.origin.y = 0;
    97     wkFrame.size.width = 0;
    98     wkFrame.size.height = 0;
     94    wkFrame.origin.x = windowRect.x();
     95    wkFrame.origin.y = windowRect.y();
     96    wkFrame.size.width = windowRect.size().width();
     97    wkFrame.size.height = windowRect.size().height();
    9998    return wkFrame;
    10099}
    101100
    102 void PlatformWebView::setWindowFrame(WKRect)
     101void PlatformWebView::setWindowFrame(WKRect wkRect)
    103102{
    104     // Implement.
     103    m_window->setGeometry(wkRect.origin.x, wkRect.origin.y, wkRect.size.width, wkRect.size.height);
    105104}
    106105
Note: See TracChangeset for help on using the changeset viewer.