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

Unified Diff: Source/devtools/front_end/source_frame/SourceFrame.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/source_frame/SourceFrame.js
diff --git a/Source/devtools/front_end/source_frame/SourceFrame.js b/Source/devtools/front_end/source_frame/SourceFrame.js
index 6c5756844ef18f95c827dbd2d4d1b11b341c479e..d8e5afee3294723e6aec722bd4916442747d0a8a 100644
--- a/Source/devtools/front_end/source_frame/SourceFrame.js
+++ b/Source/devtools/front_end/source_frame/SourceFrame.js
@@ -760,7 +760,7 @@ WebInspector.SourceFrame.RowMessage = function(consoleMessage)
{
this._consoleMessage = consoleMessage;
this._repeatCount = 1;
- this.element = document.createElementWithClass("div", "text-editor-row-message");
+ this.element = createElementWithClass("div", "text-editor-row-message");
this._icon = this.element.createChild("span", "text-editor-row-message-icon");
this._icon.classList.add(WebInspector.SourceFrame._iconClassPerLevel[consoleMessage.level]);
this._repeatCountElement = this.element.createChild("span", "bubble-repeat-count hidden error");
@@ -817,14 +817,14 @@ WebInspector.SourceFrame.RowMessageBucket = function(sourceFrame, textEditor, li
this._sourceFrame = sourceFrame;
this._textEditor = textEditor;
this._lineHandle = textEditor.textEditorPositionHandle(lineNumber, 0);
- this._decoration = document.createElementWithClass("div", "text-editor-line-decoration");
+ this._decoration = createElementWithClass("div", "text-editor-line-decoration");
this._decoration._messageBucket = this;
this._wave = this._decoration.createChild("div", "text-editor-line-decoration-wave");
this._icon = this._wave.createChild("div", "text-editor-line-decoration-icon");
this._textEditor.addDecoration(lineNumber, this._decoration);
- this._messagesDescriptionElement = document.createElementWithClass("div", "text-editor-messages-description-container");
+ this._messagesDescriptionElement = createElementWithClass("div", "text-editor-messages-description-container");
/** @type {!Array.<!WebInspector.SourceFrame.RowMessage>} */
this._messages = [];
« no previous file with comments | « Source/devtools/front_end/source_frame/ImageView.js ('k') | Source/devtools/front_end/sources/AddSourceMapURLDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698