mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
Our previous implementation kept track of an AnimationTimeline being monotonically increasing, by looking at new time values coming in and setting `m_monotonically_increasing` to `false` whenever a new value is before the previous known time value. As far as I can tell, the spec doesn't really ask us to do so: it just defines 'monotonically increasing' as a property of a timeline, i.e. it guarantees that returned time values from `::current_time()` are always greater than or equal to the last returned value. This fixes a common crash seen when the last render opportunity lies before the document's origin time, and `::set_current_time()` was invoked with a negative value. This was especially visible in the `Text/input/wpt-import/css/cssom/CSSStyleSheet-constructable.html` test. |
||
|---|---|---|
| .. | ||
| Animatable.cpp | ||
| Animatable.h | ||
| Animatable.idl | ||
| Animation.cpp | ||
| Animation.h | ||
| Animation.idl | ||
| AnimationEffect.cpp | ||
| AnimationEffect.h | ||
| AnimationEffect.idl | ||
| AnimationPlaybackEvent.cpp | ||
| AnimationPlaybackEvent.h | ||
| AnimationPlaybackEvent.idl | ||
| AnimationTimeline.cpp | ||
| AnimationTimeline.h | ||
| AnimationTimeline.idl | ||
| DocumentTimeline.cpp | ||
| DocumentTimeline.h | ||
| DocumentTimeline.idl | ||
| KeyframeEffect.cpp | ||
| KeyframeEffect.h | ||
| KeyframeEffect.idl | ||
| PseudoElementParsing.cpp | ||
| PseudoElementParsing.h | ||