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

Unified Diff: Source/devtools/front_end/components/FlameChart.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/components/FlameChart.js
diff --git a/Source/devtools/front_end/components/FlameChart.js b/Source/devtools/front_end/components/FlameChart.js
index 1864e6a5a0bd73f8c5f03f09e5ece28fb4f7f1c5..efcfdd005cd7896e21a3f2336faa631c0c666496 100644
--- a/Source/devtools/front_end/components/FlameChart.js
+++ b/Source/devtools/front_end/components/FlameChart.js
@@ -1052,7 +1052,7 @@ WebInspector.FlameChart.prototype = {
_buildEntryInfo: function(entryInfo)
{
- var infoTable = document.createElementWithClass("table", "info-table");
+ var infoTable = createElementWithClass("table", "info-table");
for (var i = 0; i < entryInfo.length; ++i) {
var row = infoTable.createChild("tr");
row.createChild("td", "title").textContent = entryInfo[i].title;
« no previous file with comments | « Source/devtools/front_end/components/FilterBar.js ('k') | Source/devtools/front_end/components/HandlerRegistry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698