Bug 542731: SMIL misc code cleanup - remove end-of-line whitespace.
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 28 Jan 2010 01:51:03 -0800
changeset 37603 49b45b82988f1221b16bb64ddeb513db26a0ec3c
parent 37602 cff84777576d7a0cee4eb2608247951b72289f58
child 37604 46e12777d0ff2d60cc11a66076c3d4eb5fff7031
push id11387
push userdholbert@mozilla.com
push dateThu, 28 Jan 2010 10:07:37 +0000
treeherdermozilla-central@6712bed154ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs542731
milestone1.9.3a1pre
Bug 542731: SMIL misc code cleanup - remove end-of-line whitespace.
content/smil/nsSMILCSSValueType.cpp
content/smil/nsSMILMilestone.h
content/smil/nsSMILParserUtils.cpp
content/smil/nsSMILTimeContainer.h
content/smil/nsSMILTimeValueSpecParams.h
content/smil/nsSMILTimedElement.cpp
content/svg/content/src/nsSVGSVGElement.h
--- a/content/smil/nsSMILCSSValueType.cpp
+++ b/content/smil/nsSMILCSSValueType.cpp
@@ -271,17 +271,17 @@ nsSMILCSSValueType::Interpolate(const ns
 
   const nsStyleAnimation::Value* startCSSValue = startWrapper ?
     &startWrapper->mCSSValue :
     GetZeroValueForUnit(endWrapper->mCSSValue.GetUnit());
   if (!startCSSValue) {
     // No zero value for this unit --> doesn't support interpolation.
     return NS_ERROR_FAILURE;
   }
-  
+
   nsStyleAnimation::Value resultValue;
   if (nsStyleAnimation::Interpolate(endWrapper->mPropID, *startCSSValue,
                                     endWrapper->mCSSValue, aUnitDistance,
                                     resultValue)) {
     aResult.mU.mPtr = new ValueWrapper(endWrapper->mPropID, resultValue,
                                        endWrapper->mPresContext);
     return aResult.mU.mPtr ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
   }
--- a/content/smil/nsSMILMilestone.h
+++ b/content/smil/nsSMILMilestone.h
@@ -90,17 +90,17 @@ public:
     return mTime < aOther.mTime ||
           (mTime == aOther.mTime && mIsEnd && !aOther.mIsEnd);
   }
 
   PRBool operator<=(const nsSMILMilestone& aOther) const
   {
     return *this == aOther || *this < aOther;
   }
-  
+
   PRBool operator>=(const nsSMILMilestone& aOther) const
   {
     return !(*this < aOther);
   }
 
   nsSMILTime   mTime;  // The milestone time. This may be in container time or
                        // parent container time depending on where it is used.
   PRPackedBool mIsEnd; // PR_TRUE if this milestone corresponds to an interval
--- a/content/smil/nsSMILParserUtils.cpp
+++ b/content/smil/nsSMILParserUtils.cpp
@@ -290,17 +290,17 @@ ParseAccessKey(const nsAString& aSpec, n
   }
 
   result.mRepeatIterationOrAccessKey = c;
 
   if (*start++ != ')')
     return NS_ERROR_FAILURE;
 
   SkipBeginWsp(start, end);
-  
+
   nsresult rv = ParseOptionalOffset(Substring(start, end), result);
   if (NS_FAILED(rv))
     return rv;
 
   aResult = result;
 
   return NS_OK;
 }
@@ -416,17 +416,17 @@ ParseElementBaseTimeValueSpec(const nsAS
     result.mType = nsSMILTimeValueSpecParams::EVENT;
     result.mEventSymbol = do_GetAtom(token);
   }
 
   // We've reached the end of the token, so we should now be either looking at
   // a '+', '-', or the end.
   const PRUnichar* specEnd = aSpec.EndReading();
   SkipBeginWsp(tokenEnd, specEnd);
-  
+
   nsresult rv = ParseOptionalOffset(Substring(tokenEnd, specEnd), result);
   if (NS_SUCCEEDED(rv)) {
     aResult = result;
   }
 
   return rv;
 }
 
@@ -678,17 +678,17 @@ nsSMILParserUtils::ParseTimeValueSpecPar
   else if (StringBeginsWith(spec, ACCESSKEY_PREFIX)) {
     rv = ParseAccessKey(spec, aResult);
   }
 
   // event, syncbase, or repeat
   else {
     rv = ParseElementBaseTimeValueSpec(spec, aResult);
   }
- 
+
   return rv;
 }
 
 nsresult
 nsSMILParserUtils::ParseClockValue(const nsAString& aSpec,
                                    nsSMILTimeValue* aResult,
                                    PRUint32 aFlags,   // = 0
                                    PRBool* aIsMedia)  // = nsnull
--- a/content/smil/nsSMILTimeContainer.h
+++ b/content/smil/nsSMILTimeContainer.h
@@ -247,17 +247,17 @@ protected:
    * Removes a child time container.
    */
   virtual void RemoveChild(nsSMILTimeContainer& aChild) { }
 
   /*
    * Implementation helper to update the current time.
    */
   void UpdateCurrentTime();
- 
+
   /*
    * Implementation helper to notify timed elements with dependencies that the
    * container time has changed with respect to the document time.
    */
   void NotifyTimeChange();
 
   // The parent time container, if any
   nsSMILTimeContainer* mParent;
--- a/content/smil/nsSMILTimeValueSpecParams.h
+++ b/content/smil/nsSMILTimeValueSpecParams.h
@@ -63,17 +63,17 @@ public:
     OFFSET,
     SYNCBASE,
     EVENT,
     REPEAT,
     ACCESSKEY,
     WALLCLOCK,
     INDEFINITE
   } mType;
- 
+
   // A clock value that is added to:
   // - type OFFSET: the document begin
   // - type SYNCBASE: the timebase's begin or end time
   // - type EVENT: the event time
   // - type REPEAT: the repeat time
   // - type ACCESSKEY: the keypress time
   // It is not used for WALLCLOCK or INDEFINITE times
   nsSMILTimeValue   mOffset;
--- a/content/smil/nsSMILTimedElement.cpp
+++ b/content/smil/nsSMILTimedElement.cpp
@@ -1017,17 +1017,17 @@ nsSMILTimedElement::GetNextInterval(cons
   // Calc starting point
   nsSMILTimeValue beginAfter;
   PRBool prevIntervalWasZeroDur = PR_FALSE;
   if (aPrevInterval && aPrevInterval->IsSet()) {
     beginAfter = aPrevInterval->End()->Time();
     prevIntervalWasZeroDur
       = aPrevInterval->End()->Time() == aPrevInterval->Begin()->Time();
     if (aFixedBeginTime) {
-      prevIntervalWasZeroDur &= 
+      prevIntervalWasZeroDur &=
         aPrevInterval->Begin()->Time() == aFixedBeginTime->Time();
     }
   } else {
     beginAfter.SetMillis(LL_MININT);
   }
 
   nsRefPtr<nsSMILInstanceTime> tempBegin;
   nsRefPtr<nsSMILInstanceTime> tempEnd;
@@ -1108,17 +1108,17 @@ nsSMILTimedElement::GetNextInterval(cons
     }
 
     // Check for valid interval
     if (tempEnd->Time() > zeroTime ||
        (tempBegin->Time() == zeroTime && tempEnd->Time() == zeroTime)) {
       aResult.Set(*tempBegin, *tempEnd);
       return NS_OK;
     }
-    
+
     if (mRestartMode == RESTART_NEVER) {
       // tempEnd <= 0 so we're going to loop which effectively means restarting
       return NS_ERROR_FAILURE;
     }
 
     beginAfter = tempEnd->Time();
   }
   NS_NOTREACHED("Hmm... we really shouldn't be here");
--- a/content/svg/content/src/nsSVGSVGElement.h
+++ b/content/svg/content/src/nsSVGSVGElement.h
@@ -219,17 +219,17 @@ protected:
   // nsSVGElement overrides
   PRBool IsEventName(nsIAtom* aName);
 
 #ifdef MOZ_SMIL
   virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent,
                               nsIContent* aBindingParent,
                               PRBool aCompileEventHandlers);
   virtual void UnbindFromTree(PRBool aDeep, PRBool aNullParent);
-#endif // MOZ_SMIL   
+#endif // MOZ_SMIL
 
   // implementation helpers:
 
   PRBool IsRoot() {
     NS_ASSERTION((IsInDoc() && !GetParent()) ==
                  (GetOwnerDoc() && (GetOwnerDoc()->GetRootContent() == this)),
                  "Can't determine if we're root");
     return IsInDoc() && !GetParent();