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

Unified Diff: Source/devtools/front_end/ui/DOMSyntaxHighlighter.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
« no previous file with comments | « Source/devtools/front_end/ui/DOMExtension.js ('k') | Source/devtools/front_end/ui/DataGrid.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
diff --git a/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js b/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
index 060ef202dee17ba97743b25c7e3aa8c78a73b983..9c6422b03d1f8f0d8971ba5edd647eba2130bc90 100644
--- a/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
+++ b/Source/devtools/front_end/ui/DOMSyntaxHighlighter.js
@@ -47,7 +47,7 @@ WebInspector.DOMSyntaxHighlighter.prototype = {
*/
createSpan: function(content, className)
{
- var span = document.createElement("span");
+ var span = createElement("span");
span.className = "cm-" + className;
if (this._stripExtraWhitespace && className !== "whitespace")
content = content.replace(/^[\n\r]*/, "").replace(/\s*$/, "");
« no previous file with comments | « Source/devtools/front_end/ui/DOMExtension.js ('k') | Source/devtools/front_end/ui/DataGrid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698