mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
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:
Notes:
github-actions[bot]
2025-12-04 16:25:22 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/315ffb91af3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7018
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user