From 8682a9793307c52cf06a9d7bc98f0f8e96b74d70 Mon Sep 17 00:00:00 2001 From: Callum Law Date: Sun, 24 Aug 2025 15:38:14 +1200 Subject: [PATCH] LibWeb: Only include longhands when dumping resolved style Shorthands will always be null so are not useful --- Services/WebContent/ConnectionFromClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/WebContent/ConnectionFromClient.cpp b/Services/WebContent/ConnectionFromClient.cpp index ed1a5cf6e0e..fb2ddf637d7 100644 --- a/Services/WebContent/ConnectionFromClient.cpp +++ b/Services/WebContent/ConnectionFromClient.cpp @@ -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 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(i)); dbgln("| {} = {}", Web::CSS::string_from_property_id(static_cast(i)), property ? property->to_string(Web::CSS::SerializationMode::Normal) : ""_string); }