mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb: Don't allow "display: none" start CSS animations
This is both a correctness fix and a performance optimization.
This commit is contained in:
parent
93f9ed72d2
commit
0cfe90b59e
Notes:
github-actions[bot]
2025-02-01 12:42:56 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 0cfe90b59e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3403
Reviewed-by: https://github.com/LucasChollet ✅
6 changed files with 116 additions and 7 deletions
|
@ -209,6 +209,8 @@ public:
|
|||
void set_pseudo_element_computed_properties(CSS::Selector::PseudoElement::Type, GC::Ptr<CSS::ComputedProperties>);
|
||||
GC::Ptr<CSS::ComputedProperties> pseudo_element_computed_properties(CSS::Selector::PseudoElement::Type);
|
||||
|
||||
bool has_display_none_ancestor();
|
||||
void play_or_cancel_animations_after_display_property_change(Optional<CSS::Display> old_display, Optional<CSS::Display> new_display);
|
||||
void reset_animated_css_properties();
|
||||
|
||||
GC::Ptr<CSS::ElementInlineCSSStyleDeclaration> inline_style() { return m_inline_style; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue