Chromium Code Reviews| 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); |
|
wkorman
2017/02/16 23:42:08
Passing the state with which we DCHECK feels weird
wkorman
2017/02/17 19:35:14
After sleeping on this I think it's ok.
|
| if (document.compositorPendingAnimations().update()) { |
| DCHECK(document.view()); |