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 f462257c18
commit b537d68146

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