mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Remove redundant dynamic_cast in ~AnimationUpdateContext()
This commit is contained in:
parent
775d15c115
commit
0baf068bbf
Notes:
github-actions[bot]
2025-08-20 07:16:38 +00:00
Author: https://github.com/awesomekling
Commit: 0baf068bbf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5917
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue