Index: third_party/WebKit/Source/core/paint/FramePainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp |
index 51f46d85e91cc9db3c4874725acc4c50f6541815..91663cdb2918f9efc66744328c4a79f9e08d7367 100644 |
--- a/third_party/WebKit/Source/core/paint/FramePainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp |
@@ -89,8 +89,10 @@ void FramePainter::paintContents(GraphicsContext& context, const GlobalPaintFlag |
return; |
} |
- RELEASE_ASSERT(!frameView().needsLayout()); |
- ASSERT(document->lifecycle().state() >= DocumentLifecycle::CompositingClean); |
+ if (!frameView().shouldThrottleRendering()) { |
+ RELEASE_ASSERT(!frameView().needsLayout()); |
+ ASSERT(document->lifecycle().state() >= DocumentLifecycle::CompositingClean); |
+ } |
TRACE_EVENT1("devtools.timeline", "Paint", "data", InspectorPaintEvent::data(layoutView, LayoutRect(rect), 0)); |
@@ -111,7 +113,8 @@ void FramePainter::paintContents(GraphicsContext& context, const GlobalPaintFlag |
PaintLayer* rootLayer = layoutView->layer(); |
#if ENABLE(ASSERT) |
- layoutView->assertSubtreeIsLaidOut(); |
+ if (!frameView().shouldThrottleRendering()) |
+ layoutView->assertSubtreeIsLaidOut(); |
LayoutObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(*rootLayer->layoutObject()); |
#endif |