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

Unified Diff: Source/devtools/front_end/profiler/CPUProfileFlameChart.js

Issue 727823002: [DevTools] Ban getSelection, requestAnimationFrame, cancelAnimationFrame global functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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: Source/devtools/front_end/profiler/CPUProfileFlameChart.js
diff --git a/Source/devtools/front_end/profiler/CPUProfileFlameChart.js b/Source/devtools/front_end/profiler/CPUProfileFlameChart.js
index 29cfcc45da46a2842fca10e0f37ea46ed2c8b7ba..239b4a12e6a44a354d07a9e7dfaf5f8b28dca490 100644
--- a/Source/devtools/front_end/profiler/CPUProfileFlameChart.js
+++ b/Source/devtools/front_end/profiler/CPUProfileFlameChart.js
@@ -657,7 +657,7 @@ WebInspector.CPUProfileFlameChart.OverviewPane.prototype = {
{
if (this._updateTimerId)
return;
- this._updateTimerId = requestAnimationFrame(this.update.bind(this));
+ this._updateTimerId = this.element.window().requestAnimationFrame(this.update.bind(this));
apavlov 2014/11/15 09:57:18 Can we define this as a shortcut on WI.View, too?
dgozman 2014/11/15 11:46:25 The less thoughtful the shortcut, the easier it wo
},
update: function()
« no previous file with comments | « Source/devtools/front_end/platform/DOMExtension.js ('k') | Source/devtools/front_end/resources/DatabaseQueryView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698