Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/Throttler.js

Issue 2738773004: No longer clamp setTimeout(..., 0) to 1ms. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/common/Throttler.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/Throttler.js b/third_party/WebKit/Source/devtools/front_end/common/Throttler.js
index 5bc43cc9a16adf4755fd1ab1ee6a560e8803db9e..c2f39f562e230ddf8680527dac03888e3be981b9 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/Throttler.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/Throttler.js
@@ -73,7 +73,7 @@ Common.Throttler = class {
if (this._processTimeout)
this._clearTimeout(this._processTimeout);
- var timeout = this._asSoonAsPossible ? 0 : this._timeout;
+ var timeout = this._asSoonAsPossible ? 1 : this._timeout;
this._processTimeout = this._setTimeout(this._onTimeout.bind(this), timeout);
}

Powered by Google App Engine
This is Rietveld 408576698