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

Unified Diff: Source/devtools/front_end/promises/PromisesPanel.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/promises/PromisesPanel.js
diff --git a/Source/devtools/front_end/promises/PromisesPanel.js b/Source/devtools/front_end/promises/PromisesPanel.js
index f40b1ce2b733929c3ce215d5fefbc8f3d55d47ae..5172db209a386bdb8b01cc6fc43875a408897d74 100644
--- a/Source/devtools/front_end/promises/PromisesPanel.js
+++ b/Source/devtools/front_end/promises/PromisesPanel.js
@@ -109,7 +109,7 @@ WebInspector.PromisesPanel.prototype = {
var nodesToInsert = { __proto__: null };
for (var i = 0; i < promiseData.length; i++) {
var promise = promiseData[i];
- var status = document.createElementWithClass("div", "status");
+ var status = createElementWithClass("div", "status");
status.classList.add(promise.status);
status.createTextChild(promise.status);
var data = {
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/resources/ApplicationCacheItemsView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698