mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1240479 - pass values for mReversePortion and mStartForReversingTestin through constructor. r=heycam
--HG-- extra : rebase_source : fae5daafa51097a7aaa96ee96431db411fb92b41
This commit is contained in:
parent
d8bb5481f5
commit
2d14b15428
@ -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;
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user