Bug 654015 patch 2: Assert that page is hidden when document disconnects from nsSMILAnimationController. r=bz

This commit is contained in:
Daniel Holbert 2011-05-12 10:50:14 -07:00
parent 949408e3df
commit cc5b2903be

View File

@ -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());