mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
WebContent+LibWeb/CSS: Add debug request to dump CSS errors
This commit is contained in:
parent
01661503b9
commit
1adddb158a
Notes:
github-actions[bot]
2025-08-04 09:51:44 +00:00
Author: https://github.com/AtkinsSJ
Commit: 1adddb158a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5576
3 changed files with 17 additions and 1 deletions
|
@ -64,4 +64,13 @@ void ErrorReporter::report(ParsingError&& error)
|
|||
m_errors.set(move(error), { .occurrences = 1 });
|
||||
}
|
||||
|
||||
void ErrorReporter::dump() const
|
||||
{
|
||||
// TODO: Organise this in some way?
|
||||
dbgln("{} CSS errors reported:", m_errors.size());
|
||||
for (auto const& [error, metadata] : m_errors) {
|
||||
dbgln("- {} ({} occurrences)", serialize_parsing_error(error), metadata.occurrences);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue