Changeset 128171 in webkit


Ignore:
Timestamp:
Sep 11, 2012 4:54:59 AM (12 years ago)
Author:
apavlov@chromium.org
Message:

Web Inspector: Remove no-op TreeElement.prototype.didChange method
https://bugs.webkit.org/show_bug.cgi?id=96376

Reviewed by Yury Semikhatsky.

  • inspector/front-end/treeoutline.js:

(TreeElement.prototype.set title):
(TreeElement.prototype.set tooltip):
(TreeElement.prototype.set hasChildren):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128166 r128171  
     12012-09-11  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: Remove no-op TreeElement.prototype.didChange method
     4        https://bugs.webkit.org/show_bug.cgi?id=96376
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        * inspector/front-end/treeoutline.js:
     9        (TreeElement.prototype.set title):
     10        (TreeElement.prototype.set tooltip):
     11        (TreeElement.prototype.set hasChildren):
     12
    1132012-09-11  Tommy Widenflycht  <tommyw@google.com>
    214
  • trunk/Source/WebCore/inspector/front-end/treeoutline.js

    r126430 r128171  
    624624        this._title = x;
    625625        this._setListItemNodeContent();
    626         this.didChange();
    627626    },
    628627
     
    635634        if (this._listItemNode)
    636635            this._listItemNode.title = x ? x : "";
    637         this.didChange();
    638636    },
    639637
     
    657655            this.collapse();
    658656        }
    659 
    660         this.didChange();
    661657    },
    662658
     
    692688        if (x && this.expanded)
    693689            this.expand();
    694     },
    695 
    696     _fireDidChange: function()
    697     {
    698         delete this._didChangeTimeoutIdentifier;
    699     },
    700 
    701     didChange: function()
    702     {
    703         if (!this.treeOutline)
    704             return;
    705 
    706         // Prevent telling the TreeOutline multiple times in a row by delaying it with a timeout.
    707         if (!this._didChangeTimeoutIdentifier)
    708             this._didChangeTimeoutIdentifier = setTimeout(this._fireDidChange.bind(this), 0);
    709690    },
    710691
Note: See TracChangeset for help on using the changeset viewer.