Bug 1343753 - Part 9: Remove assertions from ConsiderInitiatingTransition. draft
authorBoris Chiou <boris.chiou@gmail.com>
Thu, 09 Mar 2017 17:27:29 +0800
changeset 496699 ad1c0bcd42535f0f840262a7062fbe188039c648
parent 496698 24c57baa0648e729ecfc921ffe784907619d6ec1
child 496700 dba7d6d756af6488bbf229ce301c44c4f811a171
push id48657
push userbmo:boris.chiou@gmail.com
push dateFri, 10 Mar 2017 12:49:36 +0000
bugs1343753
milestone55.0a1
Bug 1343753 - Part 9: Remove assertions from ConsiderInitiatingTransition. MozReview-Commit-ID: 2rlq5E7bJxZ
layout/style/nsTransitionManager.cpp
--- a/layout/style/nsTransitionManager.cpp
+++ b/layout/style/nsTransitionManager.cpp
@@ -1005,20 +1005,16 @@ nsTransitionManager::ConsiderInitiatingT
     new ElementPropertyTransition(aTarget.mElement->OwnerDoc(), target, timing,
                                   startForReversingTest, reversePortion,
                                   effectOptions);
 
   pt->SetKeyframes(GetTransitionKeyframes(aProperty,
                                           Move(startValue), Move(endValue), tf),
                    aNewStyle);
 
-  MOZ_ASSERT(mPresContext->RestyleManager()->IsGecko(),
-             "ServoRestyleManager should not use nsTransitionManager "
-             "for transitions");
-
   RefPtr<CSSTransition> animation =
     new CSSTransition(mPresContext->Document()->GetScopeObject());
   animation->SetOwningElement(
     OwningElementRef(*aTarget.mElement, aTarget.mPseudoType));
   animation->SetTimelineNoUpdate(timeline);
   animation->SetCreationSequence(
     mPresContext->RestyleManager()->GetAnimationGeneration());
   animation->SetEffectFromStyle(pt);