Bug 179236

Summary: [Web Animations] Schedule animations registered on the document timeline
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, cdumez, dbates, dino, esprehn+autocc, kangil.han, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=122912
https://bugs.webkit.org/show_bug.cgi?id=179287
https://bugs.webkit.org/show_bug.cgi?id=179293
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews101 for mac-elcapitan
none
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
none
Archive of layout-test-results from ews116 for mac-elcapitan
none
Archive of layout-test-results from ews123 for ios-simulator-wk2
none
Patch
none
Archive of layout-test-results from ews101 for mac-elcapitan
none
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
none
Archive of layout-test-results from ews112 for mac-elcapitan
none
Archive of layout-test-results from ews125 for ios-simulator-wk2
none
Patch
none
Patch
none
Patch
none
Patch dino: review+

Description Antoine Quint 2017-11-03 02:01:58 PDT
We need to be able to schedule animations registered on the document timeline so we can update their current time as needed to then actually perform interpolations.
Comment 1 Radar WebKit Bug Importer 2017-11-03 02:02:42 PDT
<rdar://problem/35332669>
Comment 2 Antoine Quint 2017-11-04 05:58:38 PDT
Created attachment 326027 [details]
Patch
Comment 3 Build Bot 2017-11-04 07:00:00 PDT
Comment on attachment 326027 [details]
Patch

Attachment 326027 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/5104402

New failing tests:
http/wpt/web-animations/timing-model/animations/current-time.html
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 4 Build Bot 2017-11-04 07:00:01 PDT
Created attachment 326028 [details]
Archive of layout-test-results from ews101 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 5 Build Bot 2017-11-04 07:09:02 PDT
Comment on attachment 326027 [details]
Patch

Attachment 326027 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/5104422

New failing tests:
http/wpt/web-animations/timing-model/animations/current-time.html
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 6 Build Bot 2017-11-04 07:09:03 PDT
Created attachment 326029 [details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 7 Build Bot 2017-11-04 07:16:31 PDT
Comment on attachment 326027 [details]
Patch

Attachment 326027 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/5104423

New failing tests:
http/wpt/web-animations/timing-model/animations/current-time.html
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 8 Build Bot 2017-11-04 07:16:33 PDT
Created attachment 326030 [details]
Archive of layout-test-results from ews116 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 9 Build Bot 2017-11-04 07:26:05 PDT
Comment on attachment 326027 [details]
Patch

Attachment 326027 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/5104441

New failing tests:
http/wpt/web-animations/timing-model/animations/current-time.html
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 10 Build Bot 2017-11-04 07:26:06 PDT
Created attachment 326031 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 11 Antoine Quint 2017-11-04 12:22:20 PDT
Created attachment 326032 [details]
Patch
Comment 12 Build Bot 2017-11-04 13:24:36 PDT
Comment on attachment 326032 [details]
Patch

Attachment 326032 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/5106526

New failing tests:
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 13 Build Bot 2017-11-04 13:24:37 PDT
Created attachment 326037 [details]
Archive of layout-test-results from ews101 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 14 Build Bot 2017-11-04 13:31:53 PDT
Comment on attachment 326032 [details]
Patch

Attachment 326032 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/5106569

New failing tests:
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 15 Build Bot 2017-11-04 13:31:54 PDT
Created attachment 326039 [details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 16 Build Bot 2017-11-04 13:45:19 PDT
Comment on attachment 326032 [details]
Patch

Attachment 326032 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/5106663

New failing tests:
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 17 Build Bot 2017-11-04 13:45:20 PDT
Created attachment 326040 [details]
Archive of layout-test-results from ews112 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 18 Build Bot 2017-11-04 13:49:31 PDT
Comment on attachment 326032 [details]
Patch

Attachment 326032 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/5106644

New failing tests:
http/wpt/web-animations/interfaces/AnimationTimeline/document-timeline.html
http/wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
Comment 19 Build Bot 2017-11-04 13:49:32 PDT
Created attachment 326041 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 20 Antoine Quint 2017-11-04 14:27:59 PDT
Created attachment 326044 [details]
Patch
Comment 21 Antoine Quint 2017-11-05 05:06:02 PST
Created attachment 326065 [details]
Patch
Comment 22 Antoine Quint 2017-11-05 05:07:20 PST
Created attachment 326066 [details]
Patch
Comment 23 Antoine Quint 2017-11-05 05:36:10 PST
Created attachment 326067 [details]
Patch
Comment 24 Dean Jackson 2017-11-05 14:01:29 PST
Comment on attachment 326067 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=326067&action=review

> Source/WebCore/animation/DocumentTimeline.cpp:141
> +    // whihc will be addressed by the refactor tracked by webkit.org/b/179293.

typo which

> Source/WebCore/animation/DocumentTimeline.cpp:163
> +void DocumentTimeline::windowScreenDidChange(PlatformDisplayID displayID)
> +{
> +#if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)

You could leave out this function completely if !USE(RAF_D_M)

> Source/WebCore/animation/DocumentTimeline.h:65
> +    Document* m_document;

Why does this need to be a pointer? You get a Document& in the constructor. Maybe have this as a Ref<Document> in both places.
Comment 25 Antoine Quint 2017-11-05 14:34:19 PST
Committed r224472: <https://trac.webkit.org/changeset/224472>