mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +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:
parent
2a716eaf48
commit
315ffb91af
Notes:
github-actions[bot]
2025-12-04 16:25:22 +00:00
Author: https://github.com/AtkinsSJ
Commit: 315ffb91af
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7018
1 changed files with 16 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue