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!
This commit is contained in:
parent
4c94202e97
commit
f7a83e5755
Notes:
sideshowbarker
2024-07-16 19:57:55 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/f7a83e5755 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/168
1 changed files with 2 additions and 2 deletions
|
@ -196,14 +196,14 @@ static RefPtr<StyleValue const> style_value_for_shadow(Vector<ShadowData> const&
|
|||
|
||||
RefPtr<StyleValue const> ResolvedCSSStyleDeclaration::style_value_for_property(Layout::NodeWithStyle const& layout_node, PropertyID property_id) const
|
||||
{
|
||||
auto used_value_for_property = [&layout_node](Function<CSSPixels(Painting::PaintableBox const&)>&& used_value_getter) -> Optional<CSSPixels> {
|
||||
auto used_value_for_property = [&layout_node, property_id](Function<CSSPixels(Painting::PaintableBox const&)>&& used_value_getter) -> Optional<CSSPixels> {
|
||||
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<Painting::PaintableBox const&>(*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 {};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue