mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 587534. When we unregister a plugin for geometry updates make sure to hide the plugin in case it hasn't been hidden yet. r=roc
This commit is contained in:
parent
0d71672eb0
commit
b7b5763383
@ -2306,6 +2306,16 @@ nsObjectFrame::StopPluginInternal(PRBool aDelayedStop)
|
|||||||
nsRootPresContext* rootPC = PresContext()->GetRootPresContext();
|
nsRootPresContext* rootPC = PresContext()->GetRootPresContext();
|
||||||
NS_ASSERTION(rootPC, "unable to unregister the plugin frame");
|
NS_ASSERTION(rootPC, "unable to unregister the plugin frame");
|
||||||
rootPC->UnregisterPluginForGeometryUpdates(this);
|
rootPC->UnregisterPluginForGeometryUpdates(this);
|
||||||
|
|
||||||
|
// Make sure the plugin is hidden in case an update of plugin geometry
|
||||||
|
// hasn't happened since this plugin became hidden.
|
||||||
|
nsIWidget* parent = mWidget->GetParent();
|
||||||
|
if (parent) {
|
||||||
|
nsTArray<nsIWidget::Configuration> configurations;
|
||||||
|
GetEmptyClipConfiguration(&configurations);
|
||||||
|
parent->ConfigureChildren(configurations);
|
||||||
|
DidSetWidgetGeometry();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transfer the reference to the instance owner onto the stack so
|
// Transfer the reference to the instance owner onto the stack so
|
||||||
|
Loading…
Reference in New Issue
Block a user