Skip to content
  • timothy_horton@apple.com's avatar
    Make it possible to run layout tests on Retina MBP · 084f0f24
    timothy_horton@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=93673
    
    Reviewed by Ryosuke Niwa.
    
    Use NSWindow SPI and override -backingScaleFactor so that WKTR and DRT
    windows on 2x machines still run at 1x.
    
    * DumpRenderTree/mac/DumpRenderTree.mm:
    (createWebViewAndOffscreenWindow):
    Reset the window resolution to 1x on creation.
    * DumpRenderTree/mac/DumpRenderTreeWindow.h: Add NSWindow details.
    * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
    (-[DumpRenderTreeWindow backingScaleFactor]): Override, always return 1.
    * WebKitTestRunner/mac/PlatformWebViewMac.mm:
    (-[WebKitTestRunnerWindow backingScaleFactor]): Override, always return 1.
    (WTR::PlatformWebView::PlatformWebView):
    Add NSWindow details, reset the window resolution to 1x on creation.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    084f0f24