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

Unified Diff: Source/devtools/front_end/elements/MetricsSidebarPane.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/elements/MetricsSidebarPane.js
diff --git a/Source/devtools/front_end/elements/MetricsSidebarPane.js b/Source/devtools/front_end/elements/MetricsSidebarPane.js
index 97ef5bcc75b89173a94d6a17bc04e551183fb719..26033d36b578dec635472a674d7f1db5e99aea47 100644
--- a/Source/devtools/front_end/elements/MetricsSidebarPane.js
+++ b/Source/devtools/front_end/elements/MetricsSidebarPane.js
@@ -341,7 +341,7 @@ WebInspector.MetricsSidebarPane.prototype = {
var config = new WebInspector.InplaceEditor.Config(this.editingCommitted.bind(this), this.editingCancelled.bind(this), context);
WebInspector.InplaceEditor.startEditing(targetElement, config);
- window.getSelection().setBaseAndExtent(targetElement, 0, targetElement, 1);
+ targetElement.window().getSelection().setBaseAndExtent(targetElement, 0, targetElement, 1);
},
_handleKeyDown: function(context, styleProperty, event)

Powered by Google App Engine
This is Rietveld 408576698