Changeset 195454 in webkit


Ignore:
Timestamp:
Jan 22, 2016 10:03:26 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Class toggle add icon flashes when changing nodes
https://bugs.webkit.org/show_bug.cgi?id=153341

Patch by Devin Rousso <Devin Rousso> on 2016-01-22
Reviewed by Timothy Hatcher.

  • UserInterface/Views/CSSStyleDetailsSidebarPanel.js:

(WebInspector.CSSStyleDetailsSidebarPanel.prototype._populateClassToggles):
Changed the way in which the class toggles are repopulated to prevent the
add class icon from being removed and re-added.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r195442 r195454  
     12016-01-22  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: Class toggle add icon flashes when changing nodes
     4        https://bugs.webkit.org/show_bug.cgi?id=153341
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
     9        (WebInspector.CSSStyleDetailsSidebarPanel.prototype._populateClassToggles):
     10        Changed the way in which the class toggles are repopulated to prevent the
     11        add class icon from being removed and re-added.
     12
    1132016-01-21  Nikita Vasilyev  <nvasilyev@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDetailsSidebarPanel.js

    r195432 r195454  
    354354    _populateClassToggles()
    355355    {
    356         this._classListContainer.removeChildren();
    357         this._classListContainer.appendChild(this._addClassContainer);
     356        // Ensure that _addClassContainer is the first child of _classListContainer.
     357        while (this._classListContainer.children.length > 1)
     358            this._classListContainer.children[1].remove();
    358359
    359360        let classes = this.domNode.getAttribute("class");
Note: See TracChangeset for help on using the changeset viewer.