| Index: Source/core/animation/CompositorAnimations.cpp
|
| diff --git a/Source/core/animation/CompositorAnimations.cpp b/Source/core/animation/CompositorAnimations.cpp
|
| index 1807f389357510edf5720bbeae89877544f5a96f..88c14d246053e2d629404d7dc6c197e5cd28cb95 100644
|
| --- a/Source/core/animation/CompositorAnimations.cpp
|
| +++ b/Source/core/animation/CompositorAnimations.cpp
|
| @@ -257,7 +257,11 @@ bool CompositorAnimations::startAnimationOnCompositor(const Element& element, co
|
| void CompositorAnimations::cancelAnimationOnCompositor(const Element& element, int id)
|
| {
|
| if (!canStartAnimationOnCompositor(element)) {
|
| - ASSERT_NOT_REACHED();
|
| + // When an element is being detached, we cancel any associated
|
| + // AnimationPlayers for CSS animations. But by the time we get
|
| + // here the mapping will have been removed.
|
| + // FIXME: Defer remove/pause operations until after the
|
| + // compositing update.
|
| return;
|
| }
|
| toRenderBoxModelObject(element.renderer())->layer()->compositedLayerMapping()->mainGraphicsLayer()->removeAnimation(id);
|
|
|