1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

LibWeb: Keep track of associated AnimationEffects in Animatable

This commit is contained in:
Matthew Olsson 2024-02-03 12:10:44 -07:00 committed by Andreas Kling
parent 2ade834655
commit 5eea53f27a
4 changed files with 33 additions and 1 deletions

View file

@ -82,7 +82,7 @@ public:
static WebIDL::ExceptionOr<JS::NonnullGCPtr<KeyframeEffect>> construct_impl(JS::Realm&, JS::NonnullGCPtr<KeyframeEffect> source);
DOM::Element* target() const override { return m_target_element; }
void set_target(DOM::Element* target) { m_target_element = target; }
void set_target(DOM::Element* target);
Optional<String> pseudo_element() const { return m_target_pseudo_selector; }
void set_pseudo_element(Optional<String>);
@ -98,6 +98,7 @@ public:
private:
KeyframeEffect(JS::Realm&);
virtual ~KeyframeEffect() override;
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;