зеркало из https://github.com/mozilla/gecko-dev.git
Bug 951547 - Assert that nsSMILTimedElement::SampleFillValue() is not called in STATE_STARTUP. r=dholbert
This commit is contained in:
Родитель
4f27d2ee81
Коммит
3a0e55495d
|
@ -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(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче