fix crash when restarting for update [@ nsCSSStyleSheet::SetComplete]

Patch by Boris Zbarsky.
r+sr=dbaron
a=beltzner on behalf of drivers for 1.8 branch


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@207714 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
myk%mozilla.org
2006-08-17 08:20:11 +00:00
parent c6a36d30be
commit 7824fd872c

View File

@@ -1559,7 +1559,7 @@ nsCSSStyleSheet::SetOwningDocument(nsIDocument* aDocument)
mDocument = aDocument;
// Now set the same document on all our child sheets....
for (nsCSSStyleSheet* child = mFirstChild; child; child = child->mNext) {
child->mDocument = aDocument;
child->SetOwningDocument(aDocument);
}
return NS_OK;
}