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

Unified Diff: Source/devtools/front_end/ui/ProgressIndicator.js

Issue 367093003: DevTools: More code reduce via using document.createElementWithClass and document.createChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/timeline/TimelineView.js ('k') | Source/devtools/front_end/ui/SettingsUI.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/ProgressIndicator.js
diff --git a/Source/devtools/front_end/ui/ProgressIndicator.js b/Source/devtools/front_end/ui/ProgressIndicator.js
index 8831be5b9dc24b26a6ccd20fa217eee839ba0673..e9376801f084f41e6479e4f516e1856bce12e949 100644
--- a/Source/devtools/front_end/ui/ProgressIndicator.js
+++ b/Source/devtools/front_end/ui/ProgressIndicator.js
@@ -35,8 +35,7 @@
*/
WebInspector.ProgressIndicator = function()
{
- this.element = document.createElement("div");
- this.element.className = "progress-bar-container";
+ this.element = document.createElementWithClass("div", "progress-bar-container");
this._labelElement = this.element.createChild("span");
this._progressElement = this.element.createChild("progress");
this._stopButton = new WebInspector.StatusBarButton(WebInspector.UIString("Cancel"), "progress-bar-stop-button");
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineView.js ('k') | Source/devtools/front_end/ui/SettingsUI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698