Changeset 80840 in webkit


Ignore:
Timestamp:
Mar 11, 2011 3:23:02 AM (13 years ago)
Author:
apavlov@chromium.org
Message:

2011-03-11 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: hover over elements in Elements panel does not highlight nodes
https://bugs.webkit.org/show_bug.cgi?id=56121

In DOM trees with a comment and/or doctype preceding the HTML tag, the tree container right boundary
is 16px apart from the OL right boundary, and we miss the relevant LI by 4px. The fix is to compensate
for these 16px when computing the test point coordinates.

  • inspector/front-end/ElementsTreeOutline.js: (WebInspector.ElementsTreeOutline.prototype._treeElementFromEvent):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r80839 r80840  
     12011-03-11  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: hover over elements in Elements panel does not highlight nodes
     6        https://bugs.webkit.org/show_bug.cgi?id=56121
     7
     8        In DOM trees with a comment and/or doctype preceding the HTML tag, the tree container right boundary
     9        is 16px apart from the OL right boundary, and we miss the relevant LI by 4px. The fix is to compensate
     10        for these 16px when computing the test point coordinates.
     11
     12        * inspector/front-end/ElementsTreeOutline.js:
     13        (WebInspector.ElementsTreeOutline.prototype._treeElementFromEvent):
     14
    1152011-03-11  Yury Semikhatsky  <yurys@chromium.org>
    216
  • trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js

    r80713 r80840  
    194194        // In the no-word-wrap mode the outer <ol> may be wider than the tree container
    195195        // (and partially hidden), in which case we are left to use only its right boundary.
    196         var x = scrollContainer.totalOffsetLeft + scrollContainer.offsetWidth - 20;
     196        var x = scrollContainer.totalOffsetLeft + scrollContainer.offsetWidth - 36;
    197197
    198198        var y = event.pageY;
Note: See TracChangeset for help on using the changeset viewer.