mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Cancel animations when element is moved in display none subtree
We already have logic to play or cancel animations in an element's subtree when the display property changes to or from none. However, this was not sufficient to cover the case when an element starts/stops being nested in display none after insertion.
This commit is contained in:
parent
f148af0a93
commit
b92a8553c7
Notes:
github-actions[bot]
2025-03-04 17:37:15 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: b92a8553c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3800
7 changed files with 126 additions and 64 deletions
|
@ -209,8 +209,6 @@ 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