mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Support animations in embedded SVG images
This commit is contained in:
parent
b86f57ebf7
commit
a95905f93f
Notes:
github-actions[bot]
2024-08-30 11:35:58 +00:00
Author: https://github.com/tcl3
Commit: a95905f93f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1226
2 changed files with 41 additions and 1 deletions
|
@ -49,12 +49,17 @@ protected:
|
|||
|
||||
private:
|
||||
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
||||
void animate();
|
||||
|
||||
JS::GCPtr<SVG::SVGAnimatedLength> m_x;
|
||||
JS::GCPtr<SVG::SVGAnimatedLength> m_y;
|
||||
JS::GCPtr<SVG::SVGAnimatedLength> m_width;
|
||||
JS::GCPtr<SVG::SVGAnimatedLength> m_height;
|
||||
|
||||
RefPtr<Core::Timer> m_animation_timer;
|
||||
size_t m_current_frame_index { 0 };
|
||||
size_t m_loops_completed { 0 };
|
||||
|
||||
URL::URL m_href;
|
||||
|
||||
JS::GCPtr<HTML::SharedResourceRequest> m_resource_request;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue