| Code-Review | +1 |
void ResetAnimation(bool force = false);nit: can we make this more explicit? Maybe add an `enum class Timeline { kAll, kSharedOnly }`.
has_image_animation_data = image_animation_data.has_value();
if (has_image_animation_data) {Looks like `has_image_animation_data` doesn't get much use. I think we could get rid of it and test `image_animation_data` directly:
```
if (image_animation_data) {
...
```
waitForFrameTime(120).then(() => {I'm not that familiar with WPT, but synchronous waits are generally frowned upon in our web tests. I assume there are no better options for WPT?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
While on rebase, I resolve merge conflict and small changes made. PTAL!
nit: can we make this more explicit? Maybe add an `enum class Timeline { kAll, kSharedOnly }`.
Great idea! Thanks. It seems `ResetAnimation()` in `LayoutImageResource` is likely to be removed after `SvgImageAnimationReset` landed. So I defined it in `ImageLoader` and reused it.
has_image_animation_data = image_animation_data.has_value();
if (has_image_animation_data) {Looks like `has_image_animation_data` doesn't get much use. I think we could get rid of it and test `image_animation_data` directly:
```
if (image_animation_data) {
...
```
Done
I'm not that familiar with WPT, but synchronous waits are generally frowned upon in our web tests. I assume there are no better options for WPT?
Since we don't have there's no event or test hook that observes "the animation reached frame 2", I think there are no better option.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |