Changeset 234607 in webkit
- Timestamp:
- Aug 6, 2018 10:43:42 AM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r234601 r234607 1 2018-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 1 21 2018-08-06 Wenson Hsieh <wenson_hsieh@apple.com> 2 22 -
trunk/Tools/MiniBrowser/win/Common.cpp
r232862 r234607 179 179 else if (!wcsicmp(argv[i], L"--performance")) 180 180 options.pageLoadTesting = true; 181 else if (!wcsicmp(argv[i], L"--highDPI"))182 continue; // ignore183 181 else if (!wcsicmp(argv[i], L"--wk1") || !wcsicmp(argv[i], L"--legacy")) 184 182 options.windowType = MainWindow::BrowserWindowType::WebKitLegacy; -
trunk/Tools/win/DLLLauncher/DLLLauncherMain.cpp
r225767 r234607 168 168 } 169 169 170 static bool shouldUseHighDPI()171 {172 #ifdef WIN_CAIRO173 return true;174 #else175 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 #endif184 }185 186 170 #if USE_CONSOLE_ENTRY_POINT 187 171 int main(int argc, const char* argv[]) … … 190 174 #endif 191 175 { 192 if (shouldUseHighDPI()) {193 BOOL didIt = SetProcessDPIAware();194 _ASSERT(didIt);195 }196 197 176 #ifdef _CRTDBG_MAP_ALLOC 198 177 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
Note: See TracChangeset
for help on using the changeset viewer.