Bug 1188251 part 1 - Remove transitions cleanup from FlushTransitions; r=dholbert

There is no longer anything in FlushTransitions that modifies the set of
transitions. I believe this changed as of bug 960465, specifically changeset
https://hg.mozilla.org/mozilla-central/rev/b2ee72589c18, so that this code is
no longer needed.

By removing this we can further align FlushAnimations and FlushTransitions.
This commit is contained in:
Brian Birtles 2015-08-17 13:59:44 +09:00
parent 12c9711fb9
commit ab1cd7b690

View File

@ -916,8 +916,7 @@ nsTransitionManager::FlushTransitions(FlushFlags aFlags)
TimeStamp now = mPresContext->RefreshDriver()->MostRecentRefresh();
bool didThrottle = false;
// Trim transitions that have completed, post restyle events for frames that
// are still transitioning, and start transitions with delays.
// Post restyle events for frames that are transitioning.
{
PRCList *next = PR_LIST_HEAD(&mElementCollections);
while (next != &mElementCollections) {
@ -959,12 +958,6 @@ nsTransitionManager::FlushTransitions(FlushFlags aFlags)
} else {
didThrottle = true;
}
if (collection->mAnimations.IsEmpty()) {
collection->Destroy();
// |collection| is now a dangling pointer!
collection = nullptr;
}
}
}