| Index: third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp b/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
|
| index 6913f3f0c2cf5d90c68470b9c37fe49c79337b4e..ea25af00fab0b98fd999f0b9ba29cab47e10c4c0 100644
|
| --- a/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
|
| @@ -67,9 +67,13 @@ void DocumentAnimations::updateAnimationTimingIfNeeded(Document& document)
|
| updateAnimationTiming(document, TimingUpdateOnDemand);
|
| }
|
|
|
| -void DocumentAnimations::updateCompositorAnimations(Document& document)
|
| +void DocumentAnimations::updateAnimations(Document& document)
|
| {
|
| - DCHECK_EQ(document.lifecycle().state(), DocumentLifecycle::CompositingClean);
|
| + if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + DCHECK(document.lifecycle().state() >= DocumentLifecycle::CompositingClean);
|
| + else
|
| + DCHECK(document.lifecycle().state() >= DocumentLifecycle::LayoutClean);
|
| +
|
| if (document.compositorPendingAnimations().update()) {
|
| DCHECK(document.view());
|
| document.view()->scheduleAnimation();
|
|
|