Bug 1308099 part 2 - Remove unnecessary typedef and use defined name instead of full namespace. r?hiro draft
authorMantaroh Yoshinaga <mantaroh@gmail.com>
Wed, 25 Jan 2017 15:59:30 +0900
changeset 466077 3a59df8260b7f0d419c9695ebf549be9174f6aa5
parent 466073 ac06b32b56ca2e1233260b40e146c8493de03149
child 543310 caf3a996f1895496e3e82f6077e06c068de3c007
push id42780
push usermantaroh@gmail.com
push dateWed, 25 Jan 2017 06:59:59 +0000
reviewershiro
bugs1308099
milestone54.0a1
Bug 1308099 part 2 - Remove unnecessary typedef and use defined name instead of full namespace. r?hiro MozReview-Commit-ID: Jn5qLqS9Kc3
layout/style/nsAnimationManager.cpp
layout/style/nsTransitionManager.cpp
--- a/layout/style/nsAnimationManager.cpp
+++ b/layout/style/nsAnimationManager.cpp
@@ -194,17 +194,17 @@ CSSAnimation::QueueEvents()
   // Get the nsAnimationManager so we can queue events on it
   nsPresContext* presContext = mOwningElement.GetRenderedPresContext();
   if (!presContext) {
     return;
   }
   nsAnimationManager* manager = presContext->AnimationManager();
   ComputedTiming computedTiming = mEffect->GetComputedTiming();
 
-  ComputedTiming::AnimationPhase currentPhase = computedTiming.mPhase;
+  AnimationPhase currentPhase = computedTiming.mPhase;
   uint64_t currentIteration  = computedTiming.mCurrentIteration;
   if (currentPhase == mPreviousPhase &&
       currentIteration == mPreviousIteration) {
     return;
   }
 
   const StickyTimeDuration zeroDuration;
   StickyTimeDuration intervalStartTime =
--- a/layout/style/nsTransitionManager.cpp
+++ b/layout/style/nsTransitionManager.cpp
@@ -41,18 +41,16 @@ using mozilla::TimeDuration;
 using mozilla::dom::Animation;
 using mozilla::dom::AnimationPlayState;
 using mozilla::dom::CSSTransition;
 using mozilla::dom::KeyframeEffectReadOnly;
 
 using namespace mozilla;
 using namespace mozilla::css;
 
-typedef mozilla::ComputedTiming::AnimationPhase AnimationPhase;
-
 namespace {
 struct TransitionEventParams {
   EventMessage mMessage;
   StickyTimeDuration mElapsedTime;
   TimeStamp mTimeStamp;
 };
 } // anonymous namespace