Title: [117057] trunk/Source/WebCore
Revision
117057
Author
[email protected]
Date
2012-05-15 06:08:28 -0700 (Tue, 15 May 2012)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (117056 => 117057)


--- trunk/Source/WebCore/ChangeLog	2012-05-15 12:56:35 UTC (rev 117056)
+++ trunk/Source/WebCore/ChangeLog	2012-05-15 13:08:28 UTC (rev 117057)
@@ -1,3 +1,15 @@
+2012-05-15  Yury Semikhatsky  <[email protected]>
+
+        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):
+
 2012-05-15  Florin Malita  <[email protected]>
 
         Mask deformations when masked content is rotated

Modified: trunk/Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js (117056 => 117057)


--- trunk/Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js	2012-05-15 12:56:35 UTC (rev 117056)
+++ trunk/Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js	2012-05-15 13:08:28 UTC (rev 117057)
@@ -270,7 +270,7 @@
             // TODO: fix this.
             this._instanceCount += items.length;
             if (firstNotSerializedPosition < toPosition) {
-                setTimeout(serializeNextChunk.bind(this), 0);
+                serializeNextChunk.call(this);
                 return;
             }
 
@@ -278,7 +278,7 @@
                 afterPopulate();
             this.dispatchEventToListeners("populate complete");
         }
-        setTimeout(serializeNextChunk.bind(this), 0);
+        serializeNextChunk.call(this);
     },
 
     _saveChildren: function()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to