Changeset 234607 in webkit


Ignore:
Timestamp:
Aug 6, 2018 10:43:42 AM (6 years ago)
Author:
Fujii Hironori
Message:

[Win][DLLLauncher] Remove --highDPI switch
https://bugs.webkit.org/show_bug.cgi?id=188255

Reviewed by Yusuke Suzuki.

Bug 149417 has added --highDPI switch to make MiniBrowser DPI
aware. But, Bug 158733 has made MiniBrowser always DPI aware. It
became useless since the change. Remove the switch.

This change fixes the issue all dump render tree tests are failing
in WinCairo port if high DPI display is connected.

  • MiniBrowser/win/Common.cpp:

(parseCommandLine): Removed --highDPI switch.

  • win/DLLLauncher/DLLLauncherMain.cpp:

(wWinMain): Do not call SetProcessDPIAware.
(shouldUseHighDPI): Deleted.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r234601 r234607  
     12018-08-06  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][DLLLauncher] Remove --highDPI switch
     4        https://bugs.webkit.org/show_bug.cgi?id=188255
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Bug 149417 has added `--highDPI` switch to make MiniBrowser DPI
     9        aware. But, Bug 158733 has made MiniBrowser always DPI aware. It
     10        became useless since the change. Remove the switch.
     11
     12        This change fixes the issue all dump render tree tests are failing
     13        in WinCairo port if high DPI display is connected.
     14
     15        * MiniBrowser/win/Common.cpp:
     16        (parseCommandLine): Removed `--highDPI` switch.
     17        * win/DLLLauncher/DLLLauncherMain.cpp:
     18        (wWinMain): Do not call SetProcessDPIAware.
     19        (shouldUseHighDPI): Deleted.
     20
    1212018-08-06  Wenson Hsieh  <wenson_hsieh@apple.com>
    222
  • trunk/Tools/MiniBrowser/win/Common.cpp

    r232862 r234607  
    179179        else if (!wcsicmp(argv[i], L"--performance"))
    180180            options.pageLoadTesting = true;
    181         else if (!wcsicmp(argv[i], L"--highDPI"))
    182             continue; // ignore
    183181        else if (!wcsicmp(argv[i], L"--wk1") || !wcsicmp(argv[i], L"--legacy"))
    184182            options.windowType = MainWindow::BrowserWindowType::WebKitLegacy;
  • trunk/Tools/win/DLLLauncher/DLLLauncherMain.cpp

    r225767 r234607  
    168168}
    169169
    170 static bool shouldUseHighDPI()
    171 {
    172 #ifdef WIN_CAIRO
    173     return true;
    174 #else
    175     int argc = 0;
    176     WCHAR** argv = CommandLineToArgvW(GetCommandLineW(), &argc);
    177     for (int i = 1; i < argc; ++i) {
    178         if (!wcsicmp(argv[i], L"--highDPI"))
    179             return true;
    180     }
    181 
    182     return false;
    183 #endif
    184 }
    185 
    186170#if USE_CONSOLE_ENTRY_POINT
    187171int main(int argc, const char* argv[])
     
    190174#endif
    191175{
    192     if (shouldUseHighDPI()) {
    193         BOOL didIt = SetProcessDPIAware();
    194         _ASSERT(didIt);
    195     }
    196 
    197176#ifdef _CRTDBG_MAP_ALLOC
    198177    _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
Note: See TracChangeset for help on using the changeset viewer.