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

Unified Diff: Source/devtools/front_end/profiler/HeapSnapshotView.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/profiler/HeapSnapshotView.js
diff --git a/Source/devtools/front_end/profiler/HeapSnapshotView.js b/Source/devtools/front_end/profiler/HeapSnapshotView.js
index c799271664fe01cc974fd1ff562f002fce220b08..a2b97119cbf09b5ea29cfb88711040b3322f36ac 100644
--- a/Source/devtools/front_end/profiler/HeapSnapshotView.js
+++ b/Source/devtools/front_end/profiler/HeapSnapshotView.js
@@ -107,7 +107,7 @@ WebInspector.HeapSnapshotView = function(dataDisplayDelegate, profile)
splitViewResizer = this._tabbedPane.headerElement();
this._objectDetailsView = this._tabbedPane;
} else {
- var retainmentViewHeader = document.createElementWithClass("div", "heap-snapshot-view-resizer");
+ var retainmentViewHeader = createElementWithClass("div", "heap-snapshot-view-resizer");
var retainingPathsTitleDiv = retainmentViewHeader.createChild("div", "title");
var retainingPathsTitle = retainingPathsTitleDiv.createChild("span");
retainingPathsTitle.textContent = WebInspector.UIString("Retainers");
@@ -361,7 +361,7 @@ WebInspector.HeapSnapshotView.AllocationPerspective = function()
WebInspector.HeapSnapshotView.Perspective.call(this, WebInspector.UIString("Allocation"));
this._allocationSplitView = new WebInspector.SplitView(false, true, "heapSnapshotAllocationSplitViewState", 200, 200);
- var resizer = document.createElementWithClass("div", "heap-snapshot-view-resizer");
+ var resizer = createElementWithClass("div", "heap-snapshot-view-resizer");
var title = resizer.createChild("div", "title").createChild("span");
title.textContent = WebInspector.UIString("Live objects");
this._allocationSplitView.hideDefaultResizer();
« no previous file with comments | « Source/devtools/front_end/profiler/HeapSnapshotGridNodes.js ('k') | Source/devtools/front_end/profiler/ProfileLauncherView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698