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