Changeset 117057 in webkit


Ignore:
Timestamp:
May 15, 2012 6:08:28 AM (12 years ago)
Author:
yurys@chromium.org
Message:

Web Inspector: remove unnecessary setTimeout in HeapSnapshotGridNodes.js
https://bugs.webkit.org/show_bug.cgi?id=86464

Reviewed by Pavel Feldman.

  • inspector/front-end/HeapSnapshotGridNodes.js:

(WebInspector.HeapSnapshotGridNode.prototype._populateChildren.childrenRetrieved): Posting
a message to worker is already asynchronous, no need to postpone the call via setTimeout.
(WebInspector.HeapSnapshotGridNode.prototype._populateChildren):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117056 r117057  
     12012-05-15  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: remove unnecessary setTimeout in HeapSnapshotGridNodes.js
     4        https://bugs.webkit.org/show_bug.cgi?id=86464
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/HeapSnapshotGridNodes.js:
     9        (WebInspector.HeapSnapshotGridNode.prototype._populateChildren.childrenRetrieved): Posting
     10        a message to worker is already asynchronous, no need to postpone the call via setTimeout.
     11        (WebInspector.HeapSnapshotGridNode.prototype._populateChildren):
     12
    1132012-05-15  Florin Malita  <fmalita@chromium.org>
    214
  • trunk/Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js

    r117051 r117057  
    271271            this._instanceCount += items.length;
    272272            if (firstNotSerializedPosition < toPosition) {
    273                 setTimeout(serializeNextChunk.bind(this), 0);
     273                serializeNextChunk.call(this);
    274274                return;
    275275            }
     
    279279            this.dispatchEventToListeners("populate complete");
    280280        }
    281         setTimeout(serializeNextChunk.bind(this), 0);
     281        serializeNextChunk.call(this);
    282282    },
    283283
Note: See TracChangeset for help on using the changeset viewer.