Changeset 178179 in webkit


Ignore:
Timestamp:
Jan 9, 2015 11:29:40 AM (9 years ago)
Author:
ap@apple.com
Message:

platform/mac-wk2/tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration.html fails on Retina machines
https://bugs.webkit.org/show_bug.cgi?id=140300

Reviewed by Simon Fraser.

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::createOtherPage):
(WTR::TestController::updateWindowScaleForTest):
(WTR::TestController::configureViewForTest):

  • WebKitTestRunner/TestController.h:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r178170 r178179  
     12015-01-09  Alexey Proskuryakov  <ap@apple.com>
     2
     3        platform/mac-wk2/tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration.html fails on Retina machines
     4        https://bugs.webkit.org/show_bug.cgi?id=140300
     5
     6        Reviewed by Simon Fraser.
     7
     8        * WebKitTestRunner/TestController.cpp:
     9        (WTR::TestController::createOtherPage):
     10        (WTR::TestController::updateWindowScaleForTest):
     11        (WTR::TestController::configureViewForTest):
     12        * WebKitTestRunner/TestController.h:
     13
    1142015-01-09  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
    215
  • trunk/Tools/WebKitTestRunner/TestController.cpp

    r178116 r178179  
    314314
    315315    view->didInitializeClients();
     316
     317    TestController::shared().updateWindowScaleForTest(view, *TestController::shared().m_currentInvocation);
    316318
    317319    WKRetain(newPage);
     
    779781}
    780782
    781 void TestController::updateWindowScaleForTest(const TestInvocation& test)
     783void TestController::updateWindowScaleForTest(PlatformWebView* view, const TestInvocation& test)
    782784{
    783785    WTF::String localPathOrUrl = String(test.pathOrURL());
    784786    bool needsHighDPIWindow = localPathOrUrl.findIgnoringCase("/hidpi-") != notFound;
    785     mainWebView()->changeWindowScaleIfNeeded(needsHighDPIWindow ? 2 : 1);
     787    view->changeWindowScaleIfNeeded(needsHighDPIWindow ? 2 : 1);
    786788}
    787789
     
    826828{
    827829    updateWebViewSizeForTest(test);
    828     updateWindowScaleForTest(test);
     830    updateWindowScaleForTest(mainWebView(), test);
    829831    updateLayoutTypeForTest(test);
    830832
  • trunk/Tools/WebKitTestRunner/TestController.h

    r178116 r178179  
    137137
    138138    void updateWebViewSizeForTest(const TestInvocation&);
    139     void updateWindowScaleForTest(const TestInvocation&);
     139    void updateWindowScaleForTest(PlatformWebView*, const TestInvocation&);
    140140    void updateLayoutTypeForTest(const TestInvocation&);
    141141
Note: See TracChangeset for help on using the changeset viewer.