mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 10:54:33 +00:00
Make sure documents have a container before deciding that they should be translucent (bug 327014). r+sr=roc.
This commit is contained in:
parent
23f833fd94
commit
210588e5e5
@ -378,6 +378,7 @@ SyncFrameViewGeometryDependentProperties(nsPresContext* aPresContext,
|
||||
if (doc) {
|
||||
nsIContent *rootElem = doc->GetRootContent();
|
||||
if (!doc->GetParentDocument() &&
|
||||
(nsCOMPtr<nsISupports>(doc->GetContainer())) &&
|
||||
rootElem && rootElem->IsContentOfType(nsIContent::eXUL)) {
|
||||
// we're XUL at the root of the document hierarchy. Try to make our
|
||||
// window translucent.
|
||||
|
Loading…
x
Reference in New Issue
Block a user