| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 80b5de729fdeeb9c48259570b3956b2a4805960d..a2dd7df658353475a493c8a26d1be22159a796bf 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -1202,7 +1202,8 @@ void LayoutObject::invalidatePaintUsingContainer(const LayoutBoxModelObject& pai
|
| if (paintInvalidationContainer.frameView()->shouldThrottleRendering())
|
| return;
|
|
|
| - ASSERT(gDisablePaintInvalidationStateAsserts || document().lifecycle().state() == DocumentLifecycle::InPaintInvalidation);
|
| + DCHECK(gDisablePaintInvalidationStateAsserts
|
| + || document().lifecycle().state() == (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() ? DocumentLifecycle::InPrePaint : DocumentLifecycle::InPaintInvalidation));
|
|
|
| if (dirtyRect.isEmpty())
|
| return;
|
|
|