Bug 1611791 [wpt PR 21432] - Stop dispatching SMIL events while seeking, a=testonly
commit665a31768a4c32627d217aa43d3af82d62abcb50
authorFredrik Söderquist <fs@opera.com>
Tue, 4 Feb 2020 13:15:32 +0000 (4 13:15 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 11 Feb 2020 11:59:52 +0000 (11 11:59 +0000)
tree468478b384aa701e7cab6bf3235a4bc59a240ced
parent272e06b7b938adc1b2035e3f977ba5b9358028f5
Bug 1611791 [wpt PR 21432] - Stop dispatching SMIL events while seeking, a=testonly

Automatic update from web-platform-tests
Stop dispatching SMIL events while seeking

Based on [1], 'beginEvent' and 'endEvent' should only be dispatched for
elements that are active at the seeked-to time and elements that were
active at the previous/old/seeked-from time but are inactive at the
seeked-to time (respectively). 'repeatEvent's should not be disaptched
while seeking.

To handle this, extend the TimingUpdate helper class with a map that
tracks what interval the active elements had before the seek operation,
and whether the timing update operation is a seek operation (called
"fast-forward" since we end up moving in the forward direction
regardless of the actual seek direction).
Apart from that, the dispatching of 'repeatEvent's are also inhibited,
as well as the notifications of repeats in general.

[1] https://www.w3.org/TR/SMIL3/smil-timing.html#q114

Bug: 1039886
Change-Id: I17d91b1355858ee0b916d4fa46b9572e685e40e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020947
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#736289}

--

wpt-commits: e03feecc468b65aadc66b24bf76dbd0d6acfff5b
wpt-pr: 21432
testing/web-platform/tests/svg/animations/seeking-events-1.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-2.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-3.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-4.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-5.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-6.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-7.html [new file with mode: 0644]
testing/web-platform/tests/svg/animations/seeking-events-8.html [new file with mode: 0644]