Changeset 87275 in webkit
- Timestamp:
- May 24, 2011 11:37:42 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r87274 r87275 1 2011-05-24 Timothy Hatcher <timothy@apple.com> 2 3 Make the Web Inspector bring the right window to the front when docked. 4 5 rdar://problem/9464685 6 https://webkit.org/b/61420 7 8 Reviewed by Brian Weinstein. 9 10 * UIProcess/mac/WebInspectorProxyMac.mm: 11 (WebKit::WebInspectorProxy::platformBringToFront): Order front the parent window of the Inspector's WKView. 12 * UIProcess/win/WebInspectorProxyWin.cpp: 13 (WebKit::WebInspectorProxy::platformBringToFront): Ditto. 14 1 15 2011-05-24 Keishi Hattori <keishi@webkit.org> 2 16 -
trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm
r85874 r87275 155 155 void WebInspectorProxy::platformBringToFront() 156 156 { 157 // FIXME: support bring to front in docked mode here. 158 159 [m_inspectorWindow.get() makeKeyAndOrderFront:nil]; 157 // FIXME: this will not bring a background tab in Safari to the front, only its window. 158 [m_inspectorView.get().window makeKeyAndOrderFront:nil]; 160 159 } 161 160 -
trunk/Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp
r86893 r87275 228 228 void WebInspectorProxy::platformBringToFront() 229 229 { 230 // FIXME: support bring to front in docked mode here.231 232 if (! m_inspectorWindow)230 // FIXME: this will not bring a background tab in Safari to the front, only its window. 231 HWND parentWindow = m_isAttached ? ::GetAncestor(m_page->nativeWindow(), GA_ROOT) : m_inspectorWindow; 232 if (!parentWindow) 233 233 return; 234 234 235 ASSERT(::IsWindow( m_inspectorWindow));236 ::SetWindowPos( m_inspectorWindow, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE);235 ASSERT(::IsWindow(parentWindow)); 236 ::SetWindowPos(parentWindow, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE); 237 237 } 238 238
Note: See TracChangeset
for help on using the changeset viewer.