Commit 4ace251b authored by aroben@apple.com's avatar aroben@apple.com

Highlight nodes when you hover over them in the Console

        Part of Bug 16532: Inspector should highlight nodes in page when
        hovering over nodes in Inspector's interface

        <http://bugs.webkit.org/show_bug.cgi?id=16532>
        <rdar://problem/5712896>

        Reviewed by Tim Hatcher.

        * page/inspector/ConsolePanel.js:
        (WebInspector.ConsolePanel._formatnode): Add mouseover/mouseout event
        listeners to highlight the node and clear the highlight.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9fe6c4d6
2008-03-20 Adam Roben <aroben@apple.com>
Highlight nodes when you hover over them in the Console
Part of Bug 16532: Inspector should highlight nodes in page when
hovering over nodes in Inspector's interface
<http://bugs.webkit.org/show_bug.cgi?id=16532>
<rdar://problem/5712896>
Reviewed by Tim Hatcher.
* page/inspector/ConsolePanel.js:
(WebInspector.ConsolePanel._formatnode): Add mouseover/mouseout event
listeners to highlight the node and clear the highlight.
2008-03-20 Adam Roben <aroben@apple.com> 2008-03-20 Adam Roben <aroben@apple.com>
Highlight nodes in the page when you hover over their DOM breadcrumbs Highlight nodes in the page when you hover over their DOM breadcrumbs
...@@ -621,6 +621,8 @@ WebInspector.ConsolePanel.prototype = { ...@@ -621,6 +621,8 @@ WebInspector.ConsolePanel.prototype = {
var anchor = document.createElement("a"); var anchor = document.createElement("a");
anchor.innerHTML = node.titleInfo().title; anchor.innerHTML = node.titleInfo().title;
anchor.representedNode = node; anchor.representedNode = node;
anchor.addEventListener("mouseover", function() { InspectorController.highlightDOMNode(node) }, false);
anchor.addEventListener("mouseout", function() { InspectorController.hideDOMNodeHighlight() }, false);
elem.appendChild(anchor); elem.appendChild(anchor);
}, },
......
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