mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
reversed doc style sheet ordering in the style set
This commit is contained in:
parent
6989690b85
commit
d61df5bb70
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user