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

Unified Diff: Source/devtools/front_end/ui/PieChart.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
« no previous file with comments | « Source/devtools/front_end/ui/DropDownMenu.js ('k') | Source/devtools/front_end/ui/Popover.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/PieChart.js
diff --git a/Source/devtools/front_end/ui/PieChart.js b/Source/devtools/front_end/ui/PieChart.js
index 13501d90702900bfb39a350d68021dcbb4fbdcec..f46ee3d03f9384bde386a862298de97c6d0cfcae 100644
--- a/Source/devtools/front_end/ui/PieChart.js
+++ b/Source/devtools/front_end/ui/PieChart.js
@@ -36,7 +36,7 @@
WebInspector.PieChart = function(size, formatter)
{
var shadowSize = WebInspector.PieChart._ShadowSizePercent;
- this.element = document.createElementWithClass("div", "pie-chart");
+ this.element = createElementWithClass("div", "pie-chart");
this.element.appendChild(WebInspector.View.createStyleElement("pieChart.css"));
var svg = this._createSVGChild(this.element, "svg");
svg.setAttribute("width", (100 * (1 + 2 * shadowSize)) + "%");
« no previous file with comments | « Source/devtools/front_end/ui/DropDownMenu.js ('k') | Source/devtools/front_end/ui/Popover.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698