mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Remove redundant dynamic_cast in ~AnimationUpdateContext()
This commit is contained in:
parent
775d15c115
commit
0baf068bbf
|
|
@ -678,10 +678,8 @@ AnimationUpdateContext::~AnimationUpdateContext()
|
|||
if (target->layout_node())
|
||||
target->layout_node()->apply_style(*style);
|
||||
} else {
|
||||
auto pseudo_element_node = target->get_pseudo_element_node(element.pseudo_element().value());
|
||||
if (auto* node_with_style = dynamic_cast<Layout::NodeWithStyle*>(pseudo_element_node.ptr())) {
|
||||
node_with_style->apply_style(*style);
|
||||
}
|
||||
if (auto pseudo_element_node = target->get_pseudo_element_node(element.pseudo_element().value()))
|
||||
pseudo_element_node->apply_style(*style);
|
||||
}
|
||||
|
||||
if (invalidation.relayout && target->layout_node())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user