reversed doc style sheet ordering in the style set

This commit is contained in:
peterl%netscape.com 1998-09-02 02:13:37 +00:00
parent 6989690b85
commit d61df5bb70

View File

@ -462,9 +462,9 @@ nsresult DocumentViewerImpl::CreateStyleSet(nsIDocument* aDocument, nsIStyleSet*
rv = NS_NewStyleSet(aStyleSet);
if (NS_OK == rv) {
PRInt32 count = aDocument->GetNumberOfStyleSheets();
PRInt32 index = aDocument->GetNumberOfStyleSheets();
for (PRInt32 index = 0; index < count; index++) {
while (0 < index--) {
nsIStyleSheet* sheet = aDocument->GetStyleSheetAt(index);
(*aStyleSet)->AppendDocStyleSheet(sheet);
NS_RELEASE(sheet);