Bug 761446 - Remove extraneous space characters from videocontrols.xml. r=fryn
authorJonathan Wilde <jwilde@mozilla.com>
Mon, 04 Jun 2012 17:37:53 -0700
changeset 96156 44120738b32ccec647b4d22cfb7c4f52eef67cea
parent 96155 f0165b3e346866f4103c24ad6e1581dc656c3a81
child 96157 f0f924ac58d2ed447b2a648fbea9aa85a7482494
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersfryn
bugs761446
milestone15.0a1
Bug 761446 - Remove extraneous space characters from videocontrols.xml. r=fryn
toolkit/content/widgets/videocontrols.xml
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -145,21 +145,21 @@
                   return;
                 this.setAttribute("value", newValue);
 
                 if (this.type == "scrubber")
                     this.Utils.seekToPosition(newValue);
                 else if (this.type == "volumeControl")
                     this.Utils.setVolume(newValue / 100);
                 break;
-  
+
               case "minpos":
                 this.setAttribute("min", newValue);
                 break;
-  
+
               case "maxpos":
                 if (this.type == "scrubber") {
                     // Update the value bar to match the thumb position.
                     var percent = this.value / newValue;
                     this.valueBar.value = Math.round(percent * 10000); // has max=10000
                 }
                 this.setAttribute("max", newValue);
                 break;
@@ -476,17 +476,17 @@
 
                     // If the video hits an error, suppress controls if it
                     // hasn't managed to do anything else yet.
                     if (!this.firstFrameShown && this.hasError())
                         enabled = false;
 
                     return enabled;
                 },
-                
+
                 handleEvent : function (aEvent) {
                     this.log("Got media event ----> " + aEvent.type);
 
                     // If the binding is detached (or has been replaced by a
                     // newer instance of the binding), nuke our event-listeners.
                     if (this.videocontrols.randomID != this.randomID) {
                         this.terminateEventListeners();
                         return;
@@ -607,18 +607,18 @@
                         case "canplay":
                         case "canplaythrough":
                             this.setupStatusFader();
                             break;
                         case "error":
                             // We'll show the error status icon when we receive an error event
                             // under either of the following conditions:
                             // 1. The video has its error attribute set; this means we're loading
-                            //    from our src attribute, and the load failed, or we we're loading 
-                            //    from source children and the decode or playback failed after we 
+                            //    from our src attribute, and the load failed, or we we're loading
+                            //    from source children and the decode or playback failed after we
                             //    determined our selected resource was playable.
                             // 2. The video's networkState is NETWORK_NO_SOURCE. This means we we're
                             //    loading from child source elements, but we were unable to select
                             //    any of the child elements for playback during resource selection.
                             if (this.hasError()) {
                                 this.clickToPlay.hidden = true;
                                 this.statusIcon.setAttribute("type", "error");
                                 this.updateErrorText();
@@ -639,17 +639,17 @@
                         clearInterval(this.statsInterval);
                         this.statsInterval = null;
                     }
                     for each (let event in this.videoEvents)
                         this.video.removeEventListener(event, this, false);
 
                     for each(let element in this.controlListeners)
                         element.item.removeEventListener(element.event, element.func, false);
-                    
+
                     delete this.controlListeners;
 
                     this.video.removeEventListener("media-showStatistics", this._handleCustomEventsBound, false);
                     delete this._handleCustomEventsBound;
 
                     this.log("--- videocontrols terminated ---");
                 },
 
@@ -1425,17 +1425,17 @@
                 this.Utils.onMouseInOut(event);
         </handler>
         <handler event="mousemove">
             if (!this.isTouchControl)
                 this.Utils.onMouseMove(event);
         </handler>
     </handlers>
   </binding>
-  
+
   <binding id="touchControls" extends="chrome://global/content/bindings/videocontrols.xml#videoControls">
 
     <xbl:content xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="mediaControlsFrame">
         <stack flex="1">
             <vbox flex="1" class="statusOverlay" hidden="true">
                 <box class="statusIcon"/>
             </vbox>
 
@@ -1516,17 +1516,17 @@
             },
 
             showControls : function() {
               if (this.Utils.dynamicControls) {
                 this.Utils.startFadeIn(this.Utils.controlBar);
                 this.delayHideControls(this.controlsTimeout);
               }
             },
-            
+
             delayHideControls : function(aTimeout) {
               if (this.controlsTimer) {
                 clearTimeout(this.controlsTimer);
                 this.controlsTimer = null;
               }
               let self = this;
               this.controlsTimer = setTimeout(function() {
                 self.hideControls();
@@ -1561,17 +1561,17 @@
             init : function (binding) {
               this.videocontrols = binding;
               var video = binding.parentNode;
 
               let self = this;
               this.Utils.playButton.addEventListener("command", function() {
                 if (!self.Utils.video.paused)
                     self.delayHideControls(0);
-                else 
+                else
                     self.showControls();
               }, false);
               this.Utils.scrubber.addEventListener("click", function() { self.delayHideControls(self.controlsTimeout); }, false);
               this.Utils.muteButton.addEventListener("click", function() { self.delayHideControls(self.controlsTimeout); }, false);
 
               if (!video.autoplay && this.Utils.dynamicControls)
                 this.firstShow = true;
             }