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

Unified Diff: Source/devtools/front_end/ui/ViewportDataGrid.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/ui/ViewportDataGrid.js
diff --git a/Source/devtools/front_end/ui/ViewportDataGrid.js b/Source/devtools/front_end/ui/ViewportDataGrid.js
index 86f2950765ec7eaa4d13bc54099b754f80341275..41b695c6bf1a558feaceae3ac180ae8115a8b584 100644
--- a/Source/devtools/front_end/ui/ViewportDataGrid.js
+++ b/Source/devtools/front_end/ui/ViewportDataGrid.js
@@ -87,7 +87,7 @@ WebInspector.ViewportDataGrid.prototype = {
if (this._updateScheduled)
return;
this._updateScheduled = true;
- window.requestAnimationFrame(this._update.bind(this));
+ this.element.window().requestAnimationFrame(this._update.bind(this));
},
/**

Powered by Google App Engine
This is Rietveld 408576698