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

Unified Diff: Source/devtools/front_end/components/ShortcutsScreen.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months 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/components/ShortcutsScreen.js
diff --git a/Source/devtools/front_end/components/ShortcutsScreen.js b/Source/devtools/front_end/components/ShortcutsScreen.js
index 30972b6f9736a5ca6c190b92f3ee72ae3b537800..0184136bd719f3a5cf0b3259623b23681d78aea5 100644
--- a/Source/devtools/front_end/components/ShortcutsScreen.js
+++ b/Source/devtools/front_end/components/ShortcutsScreen.js
@@ -189,7 +189,7 @@ WebInspector.ShortcutsSection.prototype = {
*/
_createSpan: function(className, textContent)
{
- var node = document.createElement("span");
+ var node = createElement("span");
node.className = className;
node.textContent = textContent;
return node;
@@ -202,7 +202,7 @@ WebInspector.ShortcutsSection.prototype = {
*/
_joinNodes: function(nodes, delimiter)
{
- var result = document.createDocumentFragment();
+ var result = createDocumentFragment();
for (var i = 0; i < nodes.length; ++i) {
if (i > 0)
result.appendChild(delimiter.cloneNode(true));
« no previous file with comments | « Source/devtools/front_end/components/Section.js ('k') | Source/devtools/front_end/components/TimelineGrid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698