Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| index 4306de7d6973bc2e07a42243c737261a2ed27b12..564007ab75c51924373fc2457f3743ef327e83e4 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| @@ -99,8 +99,6 @@ WebInspector.NetworkLogView._isMatchingSearchQuerySymbol = Symbol("isMatchingSea |
| WebInspector.NetworkLogView.HTTPSchemas = {"http": true, "https": true, "ws": true, "wss": true}; |
| -WebInspector.NetworkLogView._defaultRefreshDelay = 200; |
| - |
| WebInspector.NetworkLogView._waterfallMinOvertime = 1; |
| WebInspector.NetworkLogView._waterfallMaxOvertime = 3; |
| @@ -462,8 +460,8 @@ WebInspector.NetworkLogView.prototype = { |
| this._needsRefresh = true; |
| - if (this.isShowing() && !this._refreshTimeout) |
| - this._refreshTimeout = setTimeout(this.refresh.bind(this), WebInspector.NetworkLogView._defaultRefreshDelay); |
| + if (this.isShowing() && !this._refreshRequestID) |
|
lushnikov
2016/10/04 21:23:28
nit: _refreshRequestId
|
| + this._refreshRequestID = this.element.window().requestAnimationFrame(this.refresh.bind(this)); |
| }, |
| /** |
| @@ -580,9 +578,10 @@ WebInspector.NetworkLogView.prototype = { |
| refresh: function() |
| { |
| this._needsRefresh = false; |
| - if (this._refreshTimeout) { |
| - clearTimeout(this._refreshTimeout); |
| - delete this._refreshTimeout; |
| + |
| + if (this._refreshRequestID) { |
| + this.element.window().cancelAnimationFrame(this._refreshRequestID); |
| + delete this._refreshRequestID; |
| } |
| this.removeAllNodeHighlights(); |