mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibWeb: Add AnimationEffect::target_properties()
This commit is contained in:
parent
10fddb99fc
commit
ee4abacde6
2 changed files with 9 additions and 3 deletions
|
@ -141,6 +141,8 @@ public:
|
|||
Optional<double> current_iteration() const;
|
||||
Optional<double> transformed_progress() const;
|
||||
|
||||
HashTable<CSS::PropertyID> const& target_properties() const { return m_target_properties; }
|
||||
|
||||
virtual DOM::Element* target() const { return {}; }
|
||||
virtual bool is_keyframe_effect() const { return false; }
|
||||
|
||||
|
@ -183,6 +185,10 @@ protected:
|
|||
// Used for calculating transitions in StyleComputer
|
||||
Phase m_previous_phase { Phase::Idle };
|
||||
double m_previous_current_iteration { 0.0 };
|
||||
|
||||
// https://www.w3.org/TR/web-animations-1/#target-property
|
||||
// Note: Only modified by child classes
|
||||
HashTable<CSS::PropertyID> m_target_properties;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue