Commit 210588e5 authored by bryner%brianryner.com's avatar bryner%brianryner.com
Browse files

Make sure documents have a container before deciding that they should be...

Make sure documents have a container before deciding that they should be translucent (bug 327014). r+sr=roc.
parent 23f833fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.