diff --git a/content/xul/document/src/nsXULDocument.cpp b/content/xul/document/src/nsXULDocument.cpp index 72c0857900fb..16c14bd9df93 100644 --- a/content/xul/document/src/nsXULDocument.cpp +++ b/content/xul/document/src/nsXULDocument.cpp @@ -2949,12 +2949,13 @@ XULDocumentImpl::CreatePopupDocument(nsIContent* aPopupElement, nsIDocument** aR return rv; } // Now we need to copy all of the style sheets from the parent document - PRInt32 count = mStyleSheets.Count(); + /*PRInt32 count = mStyleSheets.Count(); for (PRInt32 i = 0; i < count; i++) { // Don't bother addrefing. We don't live as long as our parent document nsIStyleSheet* sheet = (nsIStyleSheet*) mStyleSheets.ElementAt(i); + sheet->SetOwningDocument(popupDoc); popupDoc->mStyleSheets.AppendElement(sheet); - } + }*/ // We don't share builders, but we do share the DB that the current // XUL builder has. diff --git a/rdf/content/src/nsXULDocument.cpp b/rdf/content/src/nsXULDocument.cpp index 72c0857900fb..16c14bd9df93 100644 --- a/rdf/content/src/nsXULDocument.cpp +++ b/rdf/content/src/nsXULDocument.cpp @@ -2949,12 +2949,13 @@ XULDocumentImpl::CreatePopupDocument(nsIContent* aPopupElement, nsIDocument** aR return rv; } // Now we need to copy all of the style sheets from the parent document - PRInt32 count = mStyleSheets.Count(); + /*PRInt32 count = mStyleSheets.Count(); for (PRInt32 i = 0; i < count; i++) { // Don't bother addrefing. We don't live as long as our parent document nsIStyleSheet* sheet = (nsIStyleSheet*) mStyleSheets.ElementAt(i); + sheet->SetOwningDocument(popupDoc); popupDoc->mStyleSheets.AppendElement(sheet); - } + }*/ // We don't share builders, but we do share the DB that the current // XUL builder has.