Bug 186387

Summary: [Win][MiniBrowser] MiniBrowser::updateDeviceScaleFactor should be a MainWindow's method
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: Tools / TestsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, lforschler, pvollan, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 184770    
Attachments:
Description Flags
Patch
none
Patch none

Fujii Hironori
Reported 2018-06-07 01:20:33 PDT
[Win][MiniBrowser] Convert MiniBrowser::updateDeviceScaleFactor to a MainWindow's method MiniBrowser::updateDeviceScaleFactor does nothing for MiniBrowser. It should be a MainWindow's method.
Attachments
Patch (6.59 KB, patch)
2018-06-07 01:26 PDT, Fujii Hironori
no flags
Patch (7.07 KB, patch)
2018-06-07 19:13 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2018-06-07 01:26:46 PDT
Ryosuke Niwa
Comment 2 2018-06-07 13:15:14 PDT
Comment on attachment 342139 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342139&action=review > Tools/MiniBrowser/win/MainWindow.cpp:426 > + m_hURLBarFont = ::CreateFont(scaleFactor * 18, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, Where did 18 come from!?
Fujii Hironori
Comment 3 2018-06-07 18:54:23 PDT
Comment on attachment 342139 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342139&action=review Thank you very much for the review. >> Tools/MiniBrowser/win/MainWindow.cpp:426 >> + m_hURLBarFont = ::CreateFont(scaleFactor * 18, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, > > Where did 18 come from!? Good question! urlBarHeight is 24. It should be urlBarHeight * 3.0 / 4.
Fujii Hironori
Comment 4 2018-06-07 19:13:21 PDT
Fujii Hironori
Comment 5 2018-06-07 19:20:00 PDT
Radar WebKit Bug Importer
Comment 6 2018-06-07 19:20:21 PDT
Note You need to log in before you can comment on or make changes to this bug.