Index: Source/core/dom/DocumentLifecycle.cpp |
diff --git a/Source/core/dom/DocumentLifecycle.cpp b/Source/core/dom/DocumentLifecycle.cpp |
index 25abf3c9c49481710b9a62c380547cdd91aec1c1..cd284307ab6676276b3cacb4ec390efb6327e797 100644 |
--- a/Source/core/dom/DocumentLifecycle.cpp |
+++ b/Source/core/dom/DocumentLifecycle.cpp |
@@ -30,6 +30,7 @@ |
#include "config.h" |
#include "core/dom/DocumentLifecycle.h" |
+#include "platform/RuntimeEnabledFeatures.h" |
#include "wtf/Assertions.h" |
@@ -78,7 +79,6 @@ bool DocumentLifecycle::canAdvanceTo(State state) const |
// We can stop from anywhere. |
if (state == Stopping) |
return true; |
- |
switch (m_state) { |
case Uninitialized: |
return state == Inactive; |
@@ -172,6 +172,8 @@ bool DocumentLifecycle::canAdvanceTo(State state) const |
return true; |
if (state == InCompositingUpdate) |
return true; |
+ if (RuntimeEnabledFeatures::slimmingPaintCompositorLayerizationEnabled() && state == InPaintInvalidation) |
+ return true; |
break; |
case InCompositingUpdate: |
return state == CompositingClean; |