1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:07:35 +00:00

LibWeb: Use a CSSRuleList inside CSSStyleSheet

This better matches the spec. :^)
This commit is contained in:
Sam Atkins 2021-09-28 16:18:20 +01:00 committed by Andreas Kling
parent 97a78cdd28
commit eb83d2617c
2 changed files with 5 additions and 4 deletions

View file

@ -523,7 +523,7 @@ void dump_sheet(StringBuilder& builder, CSS::StyleSheet const& sheet)
{
auto& css_stylesheet = verify_cast<CSS::CSSStyleSheet>(sheet);
builder.appendff("CSSStyleSheet{{{}}}: {} rule(s)\n", &sheet, css_stylesheet.rules().size());
builder.appendff("CSSStyleSheet{{{}}}: {} rule(s)\n", &sheet, css_stylesheet.rules().length());
for (auto& rule : css_stylesheet.rules()) {
dump_rule(builder, rule);