LibWeb/CSS: Dump more information about CSSImportRules

Specifically, we now dump the conditions, and the imported style sheet -
these sheets were previously skipped entirely when dumping everything
out.
This commit is contained in:
Sam Atkins
2025-12-04 12:58:44 +00:00
parent 2a716eaf48
commit 315ffb91af
Notes: github-actions[bot] 2025-12-04 16:25:22 +00:00

View File

@@ -220,6 +220,22 @@ void CSSImportRule::dump(StringBuilder& builder, int indent_levels) const
dump_indent(builder, indent_levels + 1);
builder.appendff("Document URL: {}\n", url().to_string());
dump_indent(builder, indent_levels + 1);
builder.appendff("Has document load delayer: {}\n", m_document_load_event_delayer.has_value());
if (auto media_list = media())
media_list->dump(builder, indent_levels + 1);
if (m_supports)
m_supports->dump(builder, indent_levels + 1);
if (m_style_sheet) {
dump_sheet(builder, *m_style_sheet, indent_levels + 1);
} else {
dump_indent(builder, indent_levels + 1);
builder.append("Style sheet not loaded\n"sv);
}
}
}