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

Unified Diff: Source/devtools/front_end/source_frame/ImageView.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/ImageView.js
diff --git a/Source/devtools/front_end/source_frame/ImageView.js b/Source/devtools/front_end/source_frame/ImageView.js
index b2408ae0aa2895c6d49c4454a0d33336f4600bd4..4852fc524650278cdd60bd0f1eb2f11904b3ecaf 100644
--- a/Source/devtools/front_end/source_frame/ImageView.js
+++ b/Source/devtools/front_end/source_frame/ImageView.js
@@ -62,7 +62,7 @@ WebInspector.ImageView.prototype = {
this._container = this.element.createChild("div", "info");
this._container.createChild("h1", "title").textContent = this._parsedURL.displayName;
- var infoListElement = document.createElementWithClass("dl", "infoList");
+ var infoListElement = createElementWithClass("dl", "infoList");
WebInspector.Resource.populateImageSource(this._url, this._mimeType, this._contentProvider, imagePreviewElement);
this._contentProvider.requestContent(onContentAvailable.bind(this));
« no previous file with comments | « Source/devtools/front_end/source_frame/GoToLineDialog.js ('k') | Source/devtools/front_end/source_frame/SourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698