We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 775d15c commit 0baf068Copy full SHA for 0baf068
Libraries/LibWeb/Animations/AnimationEffect.cpp
@@ -678,10 +678,8 @@ AnimationUpdateContext::~AnimationUpdateContext()
678
if (target->layout_node())
679
target->layout_node()->apply_style(*style);
680
} else {
681
- auto pseudo_element_node = target->get_pseudo_element_node(element.pseudo_element().value());
682
- if (auto* node_with_style = dynamic_cast<Layout::NodeWithStyle*>(pseudo_element_node.ptr())) {
683
- node_with_style->apply_style(*style);
684
- }
+ if (auto pseudo_element_node = target->get_pseudo_element_node(element.pseudo_element().value()))
+ pseudo_element_node->apply_style(*style);
685
}
686
687
if (invalidation.relayout && target->layout_node())
0 commit comments