Commit 31233a40 authored by aroben@apple.com's avatar aroben@apple.com

Fix Bug 18767: Inspector is currently pretty much useless on Windows

        <https://bugs.webkit.org/show_bug.cgi?id=18767>

        Reviewed by Tim Hatcher.

        * WebCoreSupport/WebInspectorClient.cpp:
        (WebInspectorClient::highlight): Only move the highlight behind the
        Inspector window when first creating the highlight, not every time we
        update it.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fcacdb47
2008-05-14 Adam Roben <aroben@apple.com>
Fix Bug 18767: Inspector is currently pretty much useless on Windows
<https://bugs.webkit.org/show_bug.cgi?id=18767>
Reviewed by Tim Hatcher.
* WebCoreSupport/WebInspectorClient.cpp:
(WebInspectorClient::highlight): Only move the highlight behind the
Inspector window when first creating the highlight, not every time we
update it.
2008-05-13 Adam Roben <aroben@apple.com>
Neuter WebScriptDebugServer
......
......@@ -269,7 +269,9 @@ void WebInspectorClient::detachWindow()
void WebInspectorClient::highlight(Node*)
{
if (!m_highlight)
bool creatingHighlight = !m_highlight;
if (creatingHighlight)
m_highlight.set(new WebNodeHighlight(m_inspectedWebView));
if (m_highlight->isShowing())
......@@ -277,7 +279,7 @@ void WebInspectorClient::highlight(Node*)
else
m_highlight->setShowsWhileWebViewIsVisible(true);
if (IsWindowVisible(m_hwnd))
if (creatingHighlight && IsWindowVisible(m_hwnd))
m_highlight->placeBehindWindow(m_hwnd);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment