mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 588337. When looking for a container view try a little harder to find the parent document's presshell. r=roc
This commit is contained in:
parent
e0f7b76a11
commit
25c0749345
@ -2408,6 +2408,12 @@ DocumentViewerImpl::FindContainerView()
|
||||
parentDocShell->GetPresShell(getter_AddRefs(parentPresShell));
|
||||
}
|
||||
}
|
||||
if (!parentPresShell && containerElement) {
|
||||
nsCOMPtr<nsIDocument> parentDoc = containerElement->GetCurrentDoc();
|
||||
if (parentDoc) {
|
||||
parentPresShell = parentDoc->GetShell();
|
||||
}
|
||||
}
|
||||
if (!containerElement) {
|
||||
NS_WARNING("Subdocument container has no content");
|
||||
} else if (!parentPresShell) {
|
||||
|
Loading…
Reference in New Issue
Block a user