Changeset 58227 in webkit


Ignore:
Timestamp:
Apr 25, 2010 4:37:44 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-25 Yury Semikhatsky <yurys@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: inspector client shouldn't check if it can be opened
docked if it is already in that state.

https://bugs.webkit.org/show_bug.cgi?id=37946

  • WebCoreSupport/WebInspectorClient.cpp: (WebInspectorFrontendClient::WebInspectorFrontendClient): (WebInspectorFrontendClient::showWindowWithoutNotifications):
  • WebCoreSupport/WebInspectorClient.h:
Location:
trunk/WebKit/win
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/win/ChangeLog

    r58226 r58227  
     12010-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
    1152010-04-24  Steve Falkenburg  <sfalken@apple.com>
    216
  • trunk/WebKit/win/WebCoreSupport/WebInspectorClient.cpp

    r56051 r58227  
    214214    , m_frontendWebView(frontendWebView)
    215215    , m_frontendWebViewHwnd(frontendWebViewHwnd)
    216     , m_shouldAttachWhenShown(false)
    217216    , m_attached(false)
    218217    , m_destroyingInspectorView(false)
     
    355354    ASSERT(m_inspectedWebViewHwnd);
    356355
    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) {
    365369        // Put the Inspector's WebView inside our window and show it.
    366370        m_frontendWebView->setHostWindow(reinterpret_cast<OLE_HANDLE>(m_frontendHwnd));
  • trunk/WebKit/win/WebCoreSupport/WebInspectorClient.h

    r56051 r58227  
    113113    HWND m_frontendWebViewHwnd;
    114114
    115     bool m_shouldAttachWhenShown;
    116115    bool m_attached;
    117116
Note: See TracChangeset for help on using the changeset viewer.