Changeset 58227 in webkit
- Timestamp:
- Apr 25, 2010 4:37:44 AM (14 years ago)
- Location:
- trunk/WebKit/win
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/win/ChangeLog
r58226 r58227 1 2010-04-25 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: inspector client shouldn't check if it can be opened 6 docked if it is already in that state. 7 8 https://bugs.webkit.org/show_bug.cgi?id=37946 9 10 * WebCoreSupport/WebInspectorClient.cpp: 11 (WebInspectorFrontendClient::WebInspectorFrontendClient): 12 (WebInspectorFrontendClient::showWindowWithoutNotifications): 13 * WebCoreSupport/WebInspectorClient.h: 14 1 15 2010-04-24 Steve Falkenburg <sfalken@apple.com> 2 16 -
trunk/WebKit/win/WebCoreSupport/WebInspectorClient.cpp
r56051 r58227 214 214 , m_frontendWebView(frontendWebView) 215 215 , m_frontendWebViewHwnd(frontendWebViewHwnd) 216 , m_shouldAttachWhenShown(false)217 216 , m_attached(false) 218 217 , m_destroyingInspectorView(false) … … 355 354 ASSERT(m_inspectedWebViewHwnd); 356 355 357 // If no preference is set - default to an attached window. This is important for inspector LayoutTests. 358 String shouldAttach = m_inspectedWebView->page()->inspectorController()->setting(InspectorController::inspectorStartsAttachedSettingName()); 359 m_shouldAttachWhenShown = shouldAttach != "false"; 360 361 if (m_shouldAttachWhenShown && !canAttachWindow()) 362 m_shouldAttachWhenShown = false; 363 364 if (!m_shouldAttachWhenShown) { 356 bool shouldAttach = false; 357 if (m_attached) 358 shouldAttach = true; 359 else { 360 // If no preference is set - default to an attached window. This is important for inspector LayoutTests. 361 String shouldAttachPref = m_inspectedWebView->page()->inspectorController()->setting(InspectorController::inspectorStartsAttachedSettingName()); 362 shouldAttach = shouldAttachPref != "false"; 363 364 if (shouldAttach && !canAttachWindow()) 365 shouldAttach = false; 366 } 367 368 if (!shouldAttach) { 365 369 // Put the Inspector's WebView inside our window and show it. 366 370 m_frontendWebView->setHostWindow(reinterpret_cast<OLE_HANDLE>(m_frontendHwnd)); -
trunk/WebKit/win/WebCoreSupport/WebInspectorClient.h
r56051 r58227 113 113 HWND m_frontendWebViewHwnd; 114 114 115 bool m_shouldAttachWhenShown;116 115 bool m_attached; 117 116
Note: See TracChangeset
for help on using the changeset viewer.