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

Unified Diff: Source/devtools/front_end/toolbox/InspectedPagePlaceholder.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/toolbox/InspectedPagePlaceholder.js
diff --git a/Source/devtools/front_end/toolbox/InspectedPagePlaceholder.js b/Source/devtools/front_end/toolbox/InspectedPagePlaceholder.js
index 47b4a52e6443a4036290079a34f69f74a8e35dc4..d007e335c44781e106fa52b5fd6bd0d22eb39218 100644
--- a/Source/devtools/front_end/toolbox/InspectedPagePlaceholder.js
+++ b/Source/devtools/front_end/toolbox/InspectedPagePlaceholder.js
@@ -58,8 +58,8 @@ WebInspector.InspectedPagePlaceholder.prototype = {
_scheduleUpdate: function()
{
if (this._updateId)
- window.cancelAnimationFrame(this._updateId);
- this._updateId = window.requestAnimationFrame(this.update.bind(this));
+ this.element.window().cancelAnimationFrame(this._updateId);
+ this._updateId = this.element.window().requestAnimationFrame(this.update.bind(this));
},
/**

Powered by Google App Engine
This is Rietveld 408576698