X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=style_sheets.cpp;h=9c599826e921abace5045c2d8cbe0659b1bbfd88;hp=4b00ce49d7bcb328df50b109e381f82f5b9c2131;hb=99b1207e57f31c2f642219c2f2bce855d7bca20b;hpb=6a5943002ec9c852ebc9fbbd341955893ecf4769 diff --git a/style_sheets.cpp b/style_sheets.cpp index 4b00ce4..9c59982 100644 --- a/style_sheets.cpp +++ b/style_sheets.cpp @@ -42,7 +42,7 @@ void apply_style_sheet(nsIStyleSheet * style_sheet, nsIPresShell * pres_shell) { nsCOMArray style_sheets; check(pres_shell->GetAgentStyleSheets(style_sheets)); - check(style_sheets.InsertObjectAt(style_sheet, 0)); + check(style_sheets.AppendObject(style_sheet)); check(pres_shell->SetAgentStyleSheets(style_sheets)); // FIXME: We need to find an alternative that works in Mozilla 1.8.