mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Use as_if<>
in style propagation for continuation nodes
No functional changes.
This commit is contained in:
parent
911b915763
commit
cd4aca57c4
Notes:
github-actions[bot]
2025-02-05 13:35:23 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/cd4aca57c40 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3460
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue