mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 723659 - Cancel the reflow callback request when the frame is destroyed. r=roc
This commit is contained in:
parent
bf97cd412e
commit
bf3f452458
@ -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?");
|
||||
|
Loading…
Reference in New Issue
Block a user