Make CSSStyleSheetImpl::Clone properly set various weak refs on the clone

(parent sheet, parent rule, owning node, document).  Bug 167415, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@138277 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-02-23 04:44:41 +00:00
parent 369d4ae4d4
commit b8de299d37
8 changed files with 94 additions and 36 deletions

View File

@@ -981,7 +981,7 @@ CSSLoaderImpl::CreateSheet(nsIURI* aURI,
sheet->GetComplete(complete);
if (!modified || !complete) {
// Proceed on failures; at worst we'll try to create one below
sheet->Clone(*aSheet);
sheet->Clone(nsnull, nsnull, nsnull, nsnull, aSheet);
NS_ASSERTION(complete || aSheetState != eSheetComplete,
"Sheet thinks it's not complete while we think it is");
}