Bug 786111: Prevent recursive calls to nsSMILAnimationController::DoSample(). r=birtles sr=roc

This commit is contained in:
Daniel Holbert 2012-08-28 22:32:56 -07:00
parent 8c26cde49e
commit f775ff0b3e

View File

@ -358,6 +358,10 @@ nsSMILAnimationController::DoSample(bool aSkipUnchangedContainers)
NS_ERROR("Shouldn't be sampling after document has disconnected");
return;
}
if (mRunningSample) {
NS_ERROR("Shouldn't be recursively sampling");
return;
}
mResampleNeeded = false;
// Set running sample flag -- do this before flushing styles so that when we