Bug 723659 - Cancel the reflow callback request when the frame is destroyed. r=roc

This commit is contained in:
Mats Palmgren 2012-02-06 12:47:11 +01:00
parent bf97cd412e
commit bf3f452458

View File

@ -339,6 +339,10 @@ nsObjectFrame::Init(nsIContent* aContent,
void
nsObjectFrame::DestroyFrom(nsIFrame* aDestructRoot)
{
if (mReflowCallbackPosted) {
PresContext()->PresShell()->CancelReflowCallback(this);
}
// Tell content owner of the instance to disconnect its frame.
nsCOMPtr<nsIObjectLoadingContent> objContent(do_QueryInterface(mContent));
NS_ASSERTION(objContent, "Why not an object loading content?");