Disabling the cloned style sheets. This is causing trouble. Will probably have

to force them to be reparsed.
This commit is contained in:
hyatt%netscape.com 1999-05-18 10:21:11 +00:00
Родитель 0b3f6c19ea
Коммит 2ce85ee0fa
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

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

Просмотреть файл

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