Changeset 31128 in webkit
- Timestamp:
- Mar 18, 2008 9:40:30 AM (16 years ago)
- Location:
- trunk/WebKit/win
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/win/ChangeLog
r31073 r31128 1 2008-03-18 Adam Roben <aroben@apple.com> 2 3 Fix Bug 14276: Element highlight also covers Web inspector 4 5 <http://bugs.webkit.org/show_bug.cgi?id=14276> 6 <rdar://5712796> 7 8 Also fixes <rdar://5622837> Browser window comes to front when node 9 highlight appears, potentially blocking Inspector 10 11 Reviewed by Mitz. 12 13 * WebCoreSupport/WebInspectorClient.cpp: 14 (WebInspectorClient::highlight): After showing the highlight, 15 reposition it just behind the Inspector's window. 16 * WebNodeHighlight.cpp: 17 (WebNodeHighlight::show): 18 - Changed flags passed to CreateWindowEx to not specify WS_VISIBLE. 19 This is not needed because we'll show the window later in this 20 function. 21 - Removed call to SetWindowPos that tried to position the overlay 22 just in front of the WebView. This is now handled by 23 WebInspectorClient. 24 - Changed call to ShowWindow to use SetWindowPos so that we can pass 25 SWP_NOACTIVATE. This prevents the highlight from jumping in front 26 of the Inspector every time it's shown. 27 * WebNodeHighlight.h: Added a method to get the highlight's HWND. 28 1 29 2008-03-14 Steve Falkenburg <sfalken@apple.com> 2 30 -
trunk/WebKit/win/WebCoreSupport/WebInspectorClient.cpp
r30912 r31128 274 274 275 275 m_highlight->show(); 276 277 if (IsWindowVisible(m_hwnd)) { 278 // Make sure the highlight is behind us. 279 SetWindowPos(m_highlight->window(), m_hwnd, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); 280 } 276 281 } 277 282 -
trunk/WebKit/win/WebNodeHighlight.cpp
r30911 r31128 74 74 registerOverlayClass(); 75 75 76 m_overlay = ::CreateWindowEx(WS_EX_LAYERED | WS_EX_TOOLWINDOW, kOverlayWindowClassName, 0, WS_POPUP | WS_VISIBLE,76 m_overlay = ::CreateWindowEx(WS_EX_LAYERED | WS_EX_TOOLWINDOW, kOverlayWindowClassName, 0, WS_POPUP, 77 77 0, 0, 0, 0, 78 78 m_inspectedWebViewWindow, 0, 0, 0); … … 81 81 82 82 ::SetProp(m_overlay, kWebNodeHighlightPointerProp, reinterpret_cast<HANDLE>(this)); 83 ::SetWindowPos(m_overlay, m_inspectedWebViewWindow, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);84 83 85 84 m_observedWindow = GetAncestor(m_inspectedWebViewWindow, GA_ROOT); … … 89 88 90 89 updateWindow(); 91 ::ShowWindow(m_overlay, SW_SHOW);90 SetWindowPos(m_overlay, 0, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE); 92 91 } 93 92 -
trunk/WebKit/win/WebNodeHighlight.h
r30911 r31128 49 49 bool visible() const; 50 50 51 HWND window() const { return m_overlay; } 52 51 53 private: 52 54 virtual void windowReceivedMessage(HWND, UINT message, WPARAM, LPARAM);
Note: See TracChangeset
for help on using the changeset viewer.