Bug 951547 - Assert that nsSMILTimedElement::SampleFillValue() is not called in STATE_STARTUP. r=dholbert

This commit is contained in:
Chris Peterson 2013-12-18 21:08:03 -08:00
Родитель 4f27d2ee81
Коммит 3a0e55495d
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -2121,7 +2121,11 @@ nsSMILTimedElement::SampleFillValue()
if (repeatDuration.IsDefinite()) {
activeTime = std::min(repeatDuration.GetMillis(), activeTime);
}
} else if (mElementState == STATE_ACTIVE) {
} else {
MOZ_ASSERT(mElementState == STATE_ACTIVE,
"Attempting to sample fill value when we're in an unexpected state "
"(probably STATE_STARTUP)");
// If we are being asked to sample the fill value while active we *must*
// have a repeat duration shorter than the active duration so use that.
MOZ_ASSERT(GetRepeatDuration().IsDefinite(),