From f7a83e57554c7a98cda165ea1fa18356a6ee54d9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 14 Jun 2024 17:17:16 +0200 Subject: [PATCH] LibWeb: Improve FIXME message about getComputedStyle() properties Let's log which property we're trying to look up, since that's the most interesting part! --- Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp index ffc8f6cfb12..b14bb19b6f1 100644 --- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp @@ -196,14 +196,14 @@ static RefPtr style_value_for_shadow(Vector const& RefPtr ResolvedCSSStyleDeclaration::style_value_for_property(Layout::NodeWithStyle const& layout_node, PropertyID property_id) const { - auto used_value_for_property = [&layout_node](Function&& used_value_getter) -> Optional { + auto used_value_for_property = [&layout_node, property_id](Function&& used_value_getter) -> Optional { auto const& display = layout_node.computed_values().display(); if (!display.is_none() && !display.is_contents() && layout_node.paintable()) { if (layout_node.paintable()->is_paintable_box()) { auto const& paintable_box = static_cast(*layout_node.paintable()); return used_value_getter(paintable_box); } - dbgln("FIXME: Support getting used value for ({})", layout_node.debug_description()); + dbgln("FIXME: Support getting used value for property `{}` on {}", string_from_property_id(property_id), layout_node.debug_description()); } return {}; };