Null-check the root pres context result. Unregister the plugin frame earlier, at Stop instead of Destroy time. b=521426 r=roc
This commit is contained in:
@@ -7502,7 +7502,10 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
|
||||
// can require plugin clipping to change. If we requested a reflow,
|
||||
// we don't need to do this since the reflow will do it for us.
|
||||
nsIFrame* rootFrame = mPresShell->FrameManager()->GetRootFrame();
|
||||
presContext->RootPresContext()->UpdatePluginGeometry(rootFrame);
|
||||
nsRootPresContext* rootPC = presContext->GetRootPresContext();
|
||||
if (rootPC) {
|
||||
rootPC->UpdatePluginGeometry(rootFrame);
|
||||
}
|
||||
}
|
||||
|
||||
// cleanup references and verify the style tree. Note that the latter needs
|
||||
|
||||
Reference in New Issue
Block a user