mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibWeb: Transition StyleComputer to Web Animations
With this commit, we are finally running animations off of the web animations spec! A lot of the work StyleComputer is doing is now done elsewhere. For example, fill-forward animations are handled by Animation::is_relevant() returning true in the after phase, meaning the "active_state_if_fill_forward" map is no longer needed.
This commit is contained in:
parent
b258ba2767
commit
ae3326a447
7 changed files with 270 additions and 647 deletions
|
@ -370,6 +370,9 @@ WebIDL::ExceptionOr<void> Animation::play()
|
|||
// https://www.w3.org/TR/web-animations-1/#play-an-animation
|
||||
WebIDL::ExceptionOr<void> Animation::play_an_animation(AutoRewind auto_rewind)
|
||||
{
|
||||
if (auto document = document_for_timing())
|
||||
document->ensure_animation_timer();
|
||||
|
||||
// 1. Let aborted pause be a boolean flag that is true if animation has a pending pause task, and false otherwise.
|
||||
auto aborted_pause = m_pending_pause_task == TaskState::Scheduled;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue