Changeset 101192 in webkit


Ignore:
Timestamp:
Nov 26, 2011, 4:48:24 AM (14 years ago)
Author:
timothy@apple.com
Message:

Fix a bug in TreeOutline which would cause parent elements to show up as expanded and empty
when removed and added back to the tree.

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

Reviewed by Pavel Feldman.

  • inspector/front-end/treeoutline.js:

(TreeElement.prototype.collapse): Set _treeElementsExpandedState to false instead of true.
Only TreeElement.prototype.expand should set it to true, which it does.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101190 r101192  
     12011-11-26  Timothy Hatcher  <timothy@apple.com>
     2
     3        Fix a bug in TreeOutline which would cause parent elements to show up as expanded and empty
     4        when removed and added back to the tree.
     5
     6        https://bugs.webkit.org/show_bug.cgi?id=73155
     7
     8        Reviewed by Pavel Feldman.
     9
     10        * inspector/front-end/treeoutline.js:
     11        (TreeElement.prototype.collapse): Set _treeElementsExpandedState to false instead of true.
     12        Only TreeElement.prototype.expand should set it to true, which it does.
     13
    1142011-11-26  Martin Robinson  <mrobinson@igalia.com>
    215
  • trunk/Source/WebCore/inspector/front-end/treeoutline.js

    r99055 r101192  
    707707    this.expanded = false;
    708708    if (this.treeOutline)
    709         this.treeOutline._treeElementsExpandedState[this.identifier] = true;
     709        this.treeOutline._treeElementsExpandedState[this.identifier] = false;
    710710
    711711    if (this.oncollapse)
Note: See TracChangeset for help on using the changeset viewer.