Bug 1337313 - Part 3: Rename Servo_AnimationValues_XXX with Servo_AnimationValue_XXX. draft
authorBoris Chiou <boris.chiou@gmail.com>
Fri, 10 Feb 2017 12:03:08 +0800
changeset 481604 da0f8eae94caeac347bd55ec8b5ecee77b528035
parent 481603 2179b30ec43d4edbd15869db56c488f31ccffd33
child 481605 3d684358e22a4e60288a99a5b07c1f816735a9a7
push id44867
push userbmo:boris.chiou@gmail.com
push dateFri, 10 Feb 2017 04:28:38 +0000
bugs1337313
milestone54.0a1
Bug 1337313 - Part 3: Rename Servo_AnimationValues_XXX with Servo_AnimationValue_XXX. MozReview-Commit-ID: 7sAEBtR8BQq
layout/painting/nsDisplayList.cpp
layout/style/ServoBindingList.h
layout/style/StyleAnimationValue.h
--- a/layout/painting/nsDisplayList.cpp
+++ b/layout/painting/nsDisplayList.cpp
@@ -449,17 +449,17 @@ SetAnimatable(nsCSSPropertyID aProperty,
   switch (aProperty) {
     case eCSSProperty_opacity:
       aAnimatable = aAnimationValue.GetOpacity();
       break;
     case eCSSProperty_transform: {
       aAnimatable = InfallibleTArray<TransformFunction>();
       if (aAnimationValue.mServo) {
         RefPtr<nsCSSValueSharedList> list;
-        Servo_AnimationValues_GetTransform(aAnimationValue.mServo, &list);
+        Servo_AnimationValue_GetTransform(aAnimationValue.mServo, &list);
         AddTransformFunctions(list, aFrame, aRefBox, aAnimatable);
       } else {
         nsCSSValueSharedList* list =
           aAnimationValue.mGecko.GetCSSValueSharedListValue();
         AddTransformFunctions(list, aFrame, aRefBox, aAnimatable);
       }
       break;
     }
--- a/layout/style/ServoBindingList.h
+++ b/layout/style/ServoBindingList.h
@@ -126,19 +126,19 @@ SERVO_BINDING_FUNC(Servo_AnimationValues
                    double progress)
 SERVO_BINDING_FUNC(Servo_AnimationValues_Uncompute,
                    RawServoDeclarationBlockStrong,
                    RawServoAnimationValueBorrowedListBorrowed value)
 SERVO_BINDING_FUNC(Servo_AnimationValue_Serialize, void,
                    RawServoAnimationValueBorrowed value,
                    nsCSSPropertyID property,
                    nsAString* buffer)
-SERVO_BINDING_FUNC(Servo_AnimationValues_GetOpacity, float,
+SERVO_BINDING_FUNC(Servo_AnimationValue_GetOpacity, float,
                    RawServoAnimationValueBorrowed value)
-SERVO_BINDING_FUNC(Servo_AnimationValues_GetTransform, void,
+SERVO_BINDING_FUNC(Servo_AnimationValue_GetTransform, void,
                    RawServoAnimationValueBorrowed value,
                    RefPtr<nsCSSValueSharedList>* list)
 
 // Style attribute
 SERVO_BINDING_FUNC(Servo_ParseStyleAttribute, RawServoDeclarationBlockStrong,
                    const nsACString* data)
 SERVO_BINDING_FUNC(Servo_DeclarationBlock_CreateEmpty,
                    RawServoDeclarationBlockStrong)
--- a/layout/style/StyleAnimationValue.h
+++ b/layout/style/StyleAnimationValue.h
@@ -594,27 +594,27 @@ struct AnimationValue
     // FIXME: Bug 1337229: add a deep == impl for RawServoAnimationValue.
     return mGecko == aOther.mGecko && mServo == aOther.mServo;
   }
 
   bool IsNull() const { return mGecko.IsNull() && !mServo; }
 
   float GetOpacity() const
   {
-    return mServo ? Servo_AnimationValues_GetOpacity(mServo)
+    return mServo ? Servo_AnimationValue_GetOpacity(mServo)
                   : mGecko.GetFloatValue();
   }
 
   // Returns the scale for mGecko or mServo, which are calculated with
   // reference to aFrame.
   gfxSize GetScaleValue(const nsIFrame* aFrame) const
   {
     if (mServo) {
       RefPtr<nsCSSValueSharedList> list;
-      Servo_AnimationValues_GetTransform(mServo, &list);
+      Servo_AnimationValue_GetTransform(mServo, &list);
       return nsStyleTransformMatrix::GetScaleValue(list, aFrame);
     }
     return mGecko.GetScaleValue(aFrame);
   }
 
   // Uncompute this AnimationValue and then serialize it.
   void SerializeSpecifiedValue(nsCSSPropertyID aProperty,
                                nsAString& aString) const