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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user