зеркало из https://github.com/mozilla/pjs.git
Bug 536834 followup 2: Guard assertion's reference to SMIL-related member data with #ifdef MOZ_SMIL. r=bz-in-irc
This commit is contained in:
Родитель
24c16a306a
Коммит
c4b09eb0e1
|
@ -3610,11 +3610,13 @@ nsDocument::SetScriptGlobalObject(nsIScriptGlobalObject *aScriptGlobalObject)
|
|||
"Script global object must be an inner window!");
|
||||
}
|
||||
#endif
|
||||
#ifdef MOZ_SMIL
|
||||
NS_ABORT_IF_FALSE(aScriptGlobalObject || !mAnimationController ||
|
||||
mAnimationController->IsPausedByType(
|
||||
nsSMILTimeContainer::PAUSE_PAGEHIDE |
|
||||
nsSMILTimeContainer::PAUSE_BEGIN),
|
||||
"Clearing window pointer while animations are unpaused");
|
||||
#endif // MOZ_SMIL
|
||||
|
||||
if (mScriptGlobalObject && !aScriptGlobalObject) {
|
||||
// We're detaching from the window. We need to grab a pointer to
|
||||
|
|
Загрузка…
Ссылка в новой задаче