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

Unified Diff: Source/devtools/front_end/elements/AnimationsSidebarPane.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/elements/AnimationsSidebarPane.js
diff --git a/Source/devtools/front_end/elements/AnimationsSidebarPane.js b/Source/devtools/front_end/elements/AnimationsSidebarPane.js
index dbae285c217df1bb03420fd9c0a4420004200344..7c0649baf243bda715ad68168b633d04bd5ceb1d 100644
--- a/Source/devtools/front_end/elements/AnimationsSidebarPane.js
+++ b/Source/devtools/front_end/elements/AnimationsSidebarPane.js
@@ -11,7 +11,7 @@ WebInspector.AnimationsSidebarPane = function(stylesPane)
WebInspector.SidebarPane.call(this, WebInspector.UIString("Animations"));
this._stylesPane = stylesPane;
- this._emptyElement = document.createElement("div");
+ this._emptyElement = createElement("div");
this._emptyElement.className = "info";
this._emptyElement.textContent = WebInspector.UIString("No Animations");
@@ -66,10 +66,10 @@ WebInspector.AnimationsSidebarPane.prototype = {
WebInspector.AnimationSection = function(parentPane, animationPlayer)
{
this._parentPane = parentPane;
- this.propertiesSection = document.createElement("div");
+ this.propertiesSection = createElement("div");
this._setAnimationPlayer(animationPlayer);
- this.element = document.createElement("div");
+ this.element = createElement("div");
this.element.className = "styles-section";
this._updateThrottler = new WebInspector.Throttler(WebInspector.AnimationSection.updateTimeout);
@@ -121,7 +121,7 @@ WebInspector.AnimationSection.prototype = {
var iterationDuration = this.player.source().duration();
var iterationCount = this.player.source().iterationCount();
- var slider = document.createElement("input");
+ var slider = createElement("input");
slider.type = "range";
slider.min = 0;
slider.step = 0.01;
@@ -176,7 +176,7 @@ WebInspector.AnimationSection.prototype = {
this.currentTimeSlider = this._createCurrentTimeSlider();
- var controls = document.createElement("div");
+ var controls = createElement("div");
controls.appendChild(this._pauseButton.element);
controls.appendChild(this.currentTimeSlider);
« no previous file with comments | « Source/devtools/front_end/documentation/DocumentationView.js ('k') | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698