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

Unified Diff: Source/devtools/front_end/resources/ResourcesPanel.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/resources/ResourcesPanel.js
diff --git a/Source/devtools/front_end/resources/ResourcesPanel.js b/Source/devtools/front_end/resources/ResourcesPanel.js
index ea359b5c3e2b60cc7c9855528d06219eedfe2f4d..833dd1ddc7dd86ebd741fccf8e565cad8019dec4 100644
--- a/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -1206,13 +1206,13 @@ WebInspector.FrameResourceTreeElement.prototype = {
WebInspector.BaseStorageTreeElement.prototype.onattach.call(this);
if (this._resource.type === WebInspector.resourceTypes.Image) {
- var iconElement = document.createElementWithClass("div", "icon");
+ var iconElement = createElementWithClass("div", "icon");
var previewImage = iconElement.createChild("img", "image-resource-icon-preview");
this._resource.populateImageSource(previewImage);
this.listItemElement.replaceChild(iconElement, this.imageElement);
}
- this._statusElement = document.createElementWithClass("div", "status");
+ this._statusElement = createElementWithClass("div", "status");
this.listItemElement.insertBefore(this._statusElement, this.titleElement);
this.listItemElement.draggable = true;
« no previous file with comments | « Source/devtools/front_end/resources/IndexedDBViews.js ('k') | Source/devtools/front_end/screencast/ScreencastView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698