mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1362462: Fallback to main document widget for frames which haven't been inserted yet. r=mconley
MozReview-Commit-ID: Ayr2kQ9KqbW --HG-- extra : rebase_source : db78c2c13f87357f64085685629c0e2f96a5acbf
This commit is contained in:
parent
30acdf7a94
commit
3f8c999795
@ -2519,6 +2519,9 @@ TabParent::GetWidget() const
|
||||
return nullptr;
|
||||
}
|
||||
nsCOMPtr<nsIWidget> widget = nsContentUtils::WidgetForContent(mFrameElement);
|
||||
if (!widget) {
|
||||
widget = nsContentUtils::WidgetForDocument(mFrameElement->OwnerDoc());
|
||||
}
|
||||
return widget.forget();
|
||||
}
|
||||
|
||||
|
@ -217,6 +217,9 @@ RenderFrameParent::AttachLayerManager()
|
||||
if (content) {
|
||||
lm = nsContentUtils::LayerManagerForContent(content);
|
||||
}
|
||||
if (!lm) {
|
||||
lm = GetFrom(mFrameLoader);
|
||||
}
|
||||
}
|
||||
|
||||
// Perhaps the document containing this frame currently has no presentation?
|
||||
|
Loading…
Reference in New Issue
Block a user