[Web Animations] Move the logic of Document::getAnimations() to DocumentTimeline
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 28 Oct 2018 07:53:07 +0000 (07:53 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 28 Oct 2018 07:53:07 +0000 (07:53 +0000)
commit5bd25a51b825cbe246cc7f8f796feb8257a678c0
treec94b53a58bee249fcb8a3ab7d4e2d189095f4bb3
parent35186238236dca4a1355099e9598464d0b74ff39
[Web Animations] Move the logic of Document::getAnimations() to DocumentTimeline
https://bugs.webkit.org/show_bug.cgi?id=190994

Reviewed by Dean Jackson.

It would be cleaner to have the logic of document.getAnimations() on the DocumentTimeline instead of the Document, keep more
animation-related code compartmentalized in the animation directory. No change in behavior, so no test update.

* animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::getAnimations const):
* animation/DocumentTimeline.h:
* dom/Document.cpp:
(WebCore::Document::getAnimations):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/animation/DocumentTimeline.cpp
Source/WebCore/animation/DocumentTimeline.h
Source/WebCore/dom/Document.cpp