⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201843 in webkit


Ignore:
Timestamp:
Jun 8, 2016, 4:17:11 PM (10 years ago)
Author:
BJ Burg
Message:

Web Inspector: an error is encountered when trying to delete nodes that have children
https://bugs.webkit.org/show_bug.cgi?id=158541
<rdar://problem/26705901>

Reviewed by Timothy Hatcher.

  • UserInterface/Views/DOMTreeElement.js:

(WebInspector.DOMTreeElement.prototype.adjustCollapsedRange):
Offset into the array variable instead of a variable holding its length.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r201840 r201843  
     12016-06-08  Brian Burg  <bburg@apple.com>
     2
     3        Web Inspector: an error is encountered when trying to delete nodes that have children
     4        https://bugs.webkit.org/show_bug.cgi?id=158541
     5        <rdar://problem/26705901>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Views/DOMTreeElement.js:
     10        (WebInspector.DOMTreeElement.prototype.adjustCollapsedRange):
     11        Offset into the array variable instead of a variable holding its length.
     12
    1132016-06-08  Brian Burg  <bburg@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js

    r201840 r201843  
    451451        // In case some nodes from the expanded range were removed, pull some nodes from the collapsed range into the expanded range at the bottom.
    452452        for (var i = this.expandedChildCount, limit = Math.min(this.expandedChildrenLimit, totalChildrenCount); i < limit; ++i)
    453             this.insertChildElement(totalChildrenCount[i], i);
     453            this.insertChildElement(visibleChildren[i], i);
    454454
    455455        var expandedChildCount = this.expandedChildCount;
Note: See TracChangeset for help on using the changeset viewer.