Changeset 247855 in webkit
- Timestamp:
- Jul 25, 2019 11:15:38 PM (5 years ago)
- Location:
- trunk/Source/WebKitLegacy/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKitLegacy/win/ChangeLog
r247722 r247855 1 2019-07-25 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][WK1] The inspected webview window is misplaced after changing Web Inspector frontend window height 4 https://bugs.webkit.org/show_bug.cgi?id=200152 5 6 Reviewed by Brent Fulgham. 7 8 In WebInspectorFrontendClient::setAttachedWindowHeight, the size 9 of m_inspectedWebViewHwnd was changed to the whole host window 10 size. But, it's too tall because MiniBrowser's host window has a 11 toolbar. The toolbar height should be taken into account. 12 13 Change to the height of m_inspectedWebViewHwnd to the sum of 14 inspected WebView and inspector frontend WebView heights. 15 16 * WebCoreSupport/WebInspectorClient.cpp: 17 (WebInspectorFrontendClient::setAttachedWindowHeight): 18 1 19 2019-07-23 Wenson Hsieh <wenson_hsieh@apple.com> 2 20 -
trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp
r247043 r247855 328 328 GetClientRect(hostWindow, &hostWindowRect); 329 329 330 RECT frontendRect; 331 GetClientRect(m_frontendWebViewHwnd, &frontendRect); 332 330 333 RECT inspectedRect; 331 334 GetClientRect(m_inspectedWebViewHwnd, &inspectedRect); 332 335 333 int totalHeight = hostWindowRect.bottom - hostWindowRect.top;336 int hostWindowHeight = hostWindowRect.bottom; 334 337 int webViewWidth = inspectedRect.right - inspectedRect.left; 335 336 SetWindowPos(m_frontendWebViewHwnd, 0, 0, totalHeight - height, webViewWidth, height, SWP_NOZORDER); 338 int webViewHeight = frontendRect.bottom + inspectedRect.bottom; 339 340 SetWindowPos(m_frontendWebViewHwnd, 0, 0, hostWindowHeight - height, webViewWidth, height, SWP_NOZORDER); 337 341 338 342 // We want to set the inspected web view height to the totalHeight, because the height adjustment 339 343 // of the inspected web view happens in onWebViewWindowPosChanging, not here. 340 SetWindowPos(m_inspectedWebViewHwnd, 0, 0, 0, webViewWidth, totalHeight, SWP_NOZORDER);344 SetWindowPos(m_inspectedWebViewHwnd, 0, 0, hostWindowHeight - webViewHeight, webViewWidth, webViewHeight, SWP_NOZORDER); 341 345 342 346 RedrawWindow(m_frontendWebViewHwnd, 0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN | RDW_UPDATENOW);
Note: See TracChangeset
for help on using the changeset viewer.