| 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 e7c249939038b681357b67e28aaa43b825104ae6..806b319ef9dfe6410d657e6e6051e18c27d0295e 100644
|
| --- a/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
|
| @@ -65,11 +65,10 @@ void DocumentAnimations::updateAnimationTimingIfNeeded(Document& document) {
|
| updateAnimationTiming(document, TimingUpdateOnDemand);
|
| }
|
|
|
| -void DocumentAnimations::updateAnimations(Document& document) {
|
| - if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| - DCHECK(document.lifecycle().state() >= DocumentLifecycle::CompositingClean);
|
| - else
|
| - DCHECK(document.lifecycle().state() >= DocumentLifecycle::LayoutClean);
|
| +void DocumentAnimations::updateAnimations(
|
| + Document& document,
|
| + DocumentLifecycle::LifecycleState requiredLifecycleState) {
|
| + DCHECK(document.lifecycle().state() >= requiredLifecycleState);
|
|
|
| if (document.compositorPendingAnimations().update()) {
|
| DCHECK(document.view());
|
|
|