Bug 1240479 - pass values for mReversePortion and mStartForReversingTestin through constructor. r=heycam

--HG--
extra : rebase_source : fae5daafa51097a7aaa96ee96431db411fb92b41
This commit is contained in:
Bogdan Postelnicu 2016-01-19 12:33:56 +02:00
parent d8bb5481f5
commit 2d14b15428
2 changed files with 7 additions and 4 deletions

View File

@ -657,9 +657,8 @@ nsTransitionManager::ConsiderStartingTransition(
RefPtr<ElementPropertyTransition> pt =
new ElementPropertyTransition(aElement->OwnerDoc(), aElement,
aNewStyleContext->GetPseudoType(), timing);
pt->mStartForReversingTest = startForReversingTest;
pt->mReversePortion = reversePortion;
aNewStyleContext->GetPseudoType(), timing,
startForReversingTest, reversePortion);
AnimationProperty& prop = *pt->Properties().AppendElement();
prop.mProperty = aProperty;

View File

@ -38,8 +38,12 @@ struct ElementPropertyTransition : public dom::KeyframeEffectReadOnly
ElementPropertyTransition(nsIDocument* aDocument,
dom::Element* aTarget,
nsCSSPseudoElements::Type aPseudoType,
const TimingParams &aTiming)
const TimingParams &aTiming,
StyleAnimationValue aStartForReversingTest,
double aReversePortion)
: dom::KeyframeEffectReadOnly(aDocument, aTarget, aPseudoType, aTiming)
, mStartForReversingTest(aStartForReversingTest)
, mReversePortion(aReversePortion)
{ }
ElementPropertyTransition* AsTransition() override { return this; }