mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 654015 patch 2: Assert that page is hidden when document disconnects from nsSMILAnimationController. r=bz
This commit is contained in:
parent
949408e3df
commit
cc5b2903be
@ -94,6 +94,8 @@ nsSMILAnimationController::Disconnect()
|
||||
NS_ABORT_IF_FALSE(mDocument, "disconnecting when we weren't connected...?");
|
||||
NS_ABORT_IF_FALSE(mRefCnt.get() == 1,
|
||||
"Expecting to disconnect when doc is sole remaining owner");
|
||||
NS_ABORT_IF_FALSE(mPauseState & nsSMILTimeContainer::PAUSE_PAGEHIDE,
|
||||
"Expecting to be paused for pagehide before disconnect");
|
||||
|
||||
StopSampling(GetRefreshDriver());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user