Index: Source/core/animation/Animation.cpp |
diff --git a/Source/core/animation/Animation.cpp b/Source/core/animation/Animation.cpp |
index 1cb73a08c8ed98123f96df0e8a599685add28189..23297a040c5752e4c47c38bbd8c2802d4cce067d 100644 |
--- a/Source/core/animation/Animation.cpp |
+++ b/Source/core/animation/Animation.cpp |
@@ -272,7 +272,7 @@ bool Animation::cancelAnimationOnCompositor() |
DisableCompositingQueryAsserts disabler; |
if (!hasActiveAnimationsOnCompositor()) |
return false; |
- if (!m_target || !m_target->renderer()) |
+ if (!m_target || !m_target->layoutObject()) |
return false; |
for (const auto& compositorAnimationId : m_compositorAnimationIds) |
CompositorAnimations::instance()->cancelAnimationOnCompositor(*m_target, compositorAnimationId); |
@@ -295,7 +295,7 @@ void Animation::cancelIncompatibleAnimationsOnCompositor() |
void Animation::pauseAnimationForTestingOnCompositor(double pauseTime) |
{ |
ASSERT(hasActiveAnimationsOnCompositor()); |
- if (!m_target || !m_target->renderer()) |
+ if (!m_target || !m_target->layoutObject()) |
return; |
for (const auto& compositorAnimationId : m_compositorAnimationIds) |
CompositorAnimations::instance()->pauseAnimationForTestingOnCompositor(*m_target, compositorAnimationId, pauseTime); |