mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibWeb: Implement KeyframeEffect::{get,set}_keyframes
This commit is contained in:
parent
38c67ba17c
commit
3c9c134d71
3 changed files with 54 additions and 7 deletions
|
@ -77,7 +77,7 @@ public:
|
|||
Bindings::CompositeOperation composite() const { return m_composite; }
|
||||
void set_composite(Bindings::CompositeOperation value) { m_composite = value; }
|
||||
|
||||
WebIDL::ExceptionOr<Vector<JS::Object*>> get_keyframes() const;
|
||||
WebIDL::ExceptionOr<Vector<JS::Object*>> get_keyframes();
|
||||
WebIDL::ExceptionOr<void> set_keyframes(Optional<JS::Handle<JS::Object>> const&);
|
||||
|
||||
private:
|
||||
|
@ -97,6 +97,9 @@ private:
|
|||
|
||||
// https://www.w3.org/TR/web-animations-1/#keyframe
|
||||
Vector<BaseKeyframe> m_keyframes {};
|
||||
|
||||
// A cached version of m_keyframes suitable for returning from get_keyframes()
|
||||
Vector<JS::Object*> m_keyframe_objects {};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue