LibWeb: Use as_if<> in style propagation for continuation nodes

No functional changes.
This commit is contained in:
Jelle Raaijmakers 2025-02-04 23:05:00 +01:00 committed by Alexander Kalenik
parent 911b915763
commit cd4aca57c4
Notes: github-actions[bot] 2025-02-05 13:35:23 +00:00

View file

@ -1049,8 +1049,8 @@ void NodeWithStyle::apply_style(CSS::ComputedProperties const& computed_style)
propagate_style_to_anonymous_wrappers();
if (is<NodeWithStyleAndBoxModelMetrics>(this))
static_cast<NodeWithStyleAndBoxModelMetrics&>(*this).propagate_style_along_continuation(computed_style);
if (auto* box_node = as_if<NodeWithStyleAndBoxModelMetrics>(*this))
box_node->propagate_style_along_continuation(computed_style);
}
void NodeWithStyle::propagate_style_to_anonymous_wrappers()