зеркало из https://github.com/mozilla/gecko-dev.git
Disabling the cloned style sheets. This is causing trouble. Will probably have
to force them to be reparsed.
This commit is contained in:
Родитель
0b3f6c19ea
Коммит
2ce85ee0fa
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче