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

Unified Diff: Source/devtools/front_end/ui/DataGrid.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/DataGrid.js
diff --git a/Source/devtools/front_end/ui/DataGrid.js b/Source/devtools/front_end/ui/DataGrid.js
index 8a99407e839fd81cb0c8165f0da24bbefb4fbd4a..0c8de8693aba8896ced0c834f37b8662f3cb72c4 100644
--- a/Source/devtools/front_end/ui/DataGrid.js
+++ b/Source/devtools/front_end/ui/DataGrid.js
@@ -283,7 +283,7 @@ WebInspector.DataGrid.prototype = {
var element = this._editingNode._element.children[cellIndex];
WebInspector.InplaceEditor.startEditing(element, this._startEditingConfig(element));
- window.getSelection().setBaseAndExtent(element, 0, element, 1);
+ element.window().getSelection().setBaseAndExtent(element, 0, element, 1);
},
_startEditing: function(target)
@@ -306,7 +306,7 @@ WebInspector.DataGrid.prototype = {
this._editing = true;
WebInspector.InplaceEditor.startEditing(element, this._startEditingConfig(element));
- window.getSelection().setBaseAndExtent(element, 0, element, 1);
+ element.window().getSelection().setBaseAndExtent(element, 0, element, 1);
},
renderInline: function()

Powered by Google App Engine
This is Rietveld 408576698