| Index: Source/core/animation/DocumentTimeline.cpp
|
| diff --git a/Source/core/animation/DocumentTimeline.cpp b/Source/core/animation/DocumentTimeline.cpp
|
| index 77ef592d566ff005da38639a7d62257444a653db..9e862d5d959c895853826de18802d239fa4461b3 100644
|
| --- a/Source/core/animation/DocumentTimeline.cpp
|
| +++ b/Source/core/animation/DocumentTimeline.cpp
|
| @@ -79,6 +79,8 @@ AnimationPlayer* DocumentTimeline::createAnimationPlayer(TimedItem* child)
|
|
|
| AnimationPlayer* DocumentTimeline::play(TimedItem* child)
|
| {
|
| + if (!m_document)
|
| + return 0;
|
| AnimationPlayer* player = createAnimationPlayer(child);
|
| player->setStartTime(effectiveTime());
|
| return player;
|
| @@ -190,6 +192,7 @@ size_t DocumentTimeline::numberOfActiveAnimationsForTesting() const
|
| }
|
|
|
| void DocumentTimeline::detachFromDocument() {
|
| + // FIXME: DocumentTimeline should keep Document alive.
|
| m_document = 0;
|
| }
|
|
|
|
|