mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibWeb: Only include longhands when dumping resolved style
Shorthands will always be null so are not useful
This commit is contained in:
parent
487d0abd7c
commit
8682a97933
Notes:
github-actions[bot]
2025-08-26 10:19:39 +00:00
Author: https://github.com/Calme1709
Commit: 8682a97933
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5984
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ void ConnectionFromClient::debug_request(u64 page_id, ByteString request, ByteSt
|
|||
if (request == "dump-all-resolved-styles") {
|
||||
auto dump_style = [](String const& title, Web::CSS::ComputedProperties const& style, HashMap<FlyString, Web::CSS::StyleProperty> const& custom_properties) {
|
||||
dbgln("+ {}", title);
|
||||
for (size_t i = 0; i < Web::CSS::ComputedProperties::number_of_properties; ++i) {
|
||||
for (size_t i = to_underlying(Web::CSS::first_longhand_property_id); i < to_underlying(Web::CSS::last_longhand_property_id); ++i) {
|
||||
auto property = style.maybe_null_property(static_cast<Web::CSS::PropertyID>(i));
|
||||
dbgln("| {} = {}", Web::CSS::string_from_property_id(static_cast<Web::CSS::PropertyID>(i)), property ? property->to_string(Web::CSS::SerializationMode::Normal) : ""_string);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue