Make sure documents have a container before deciding that they should be translucent (bug 327014). r+sr=roc.

This commit is contained in:
bryner%brianryner.com 2006-03-07 05:34:37 +00:00
parent 23f833fd94
commit 210588e5e5

View File

@ -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.