Bug 1358570: Make PurgeCompletedTransitions lookup the correct animation collection. r=hiro

Probably GetAnimationCollection itself should assert against it, but that's a
bigger task right now...

MozReview-Commit-ID: JxFWXtgMAXy
This commit is contained in:
Emilio Cobos Álvarez
2017-04-21 16:53:21 +02:00
parent ef04a097f2
commit d133d0c021
2 changed files with 5 additions and 2 deletions

View File

@@ -1898,8 +1898,8 @@ nsCSSFrameConstructor::CreateGeneratedContentItem(nsFrameConstructorState& aStat
&pseudoStyleContext);
} else {
aState.mPresContext->TransitionManager()->
PruneCompletedTransitions(container, aPseudoElement,
pseudoStyleContext);
PruneCompletedTransitions(aParentContent->AsElement(),
aPseudoElement, pseudoStyleContext);
}
}
}