Skip to content

Commit

Permalink
2010-03-09 Pavel Feldman <[email protected]>
Browse files Browse the repository at this point in the history
        Reviewed by Timothy Hatcher.

        Web Inspector: highlight text node containers while searching for node.

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

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::mouseDidMoveOverElement):


git-svn-id: svn://svn.chromium.org/blink/trunk@55725 bbb929c8-8fbe-4397-9dbb-9b2b20218538
  • Loading branch information
[email protected] committed Mar 9, 2010
1 parent 7a38a25 commit a00169d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions third_party/WebKit/WebCore/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2010-03-09 Pavel Feldman <[email protected]>

Reviewed by Timothy Hatcher.

Web Inspector: highlight text node containers while searching for node.

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

* inspector/InspectorController.cpp:
(WebCore::InspectorController::mouseDidMoveOverElement):

2010-03-09 Philippe Normand <[email protected]>

Reviewed by Gustavo Noronha Silva.
Expand Down
2 changes: 2 additions & 0 deletions third_party/WebKit/WebCore/inspector/InspectorController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ void InspectorController::mouseDidMoveOverElement(const HitTestResult& result, u
return;

Node* node = result.innerNode();
while (node && node->nodeType() == Node::TEXT_NODE)
node = node->parentNode();
if (node)
highlight(node);
}
Expand Down

0 comments on commit a00169d

Please sign in to comment.