Index: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp |
index 10504663aedc37ecc47adfcc3514064d0211b8bb..dc02618fefeb554c6436287cffab6650bba2bd80 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp |
@@ -8,6 +8,7 @@ |
#include "core/frame/Settings.h" |
#include "core/layout/ClipPathOperation.h" |
#include "core/layout/LayoutBlock.h" |
+#include "core/layout/LayoutFrame.h" |
#include "core/layout/LayoutView.h" |
#include "core/layout/svg/LayoutSVGResourceClipper.h" |
#include "core/page/Page.h" |
@@ -79,6 +80,10 @@ PaintLayerPainter::PaintResult PaintLayerPainter::paintLayer(GraphicsContext* co |
if (shouldSuppressPaintingLayer(&m_paintLayer)) |
return FullyPainted; |
+ // TODO(skyostil): Unify this early-out logic with subsequence caching. |
+ if (m_paintLayer.layoutObject()->isLayoutPart() && toLayoutPart(m_paintLayer.layoutObject())->isThrottledFrameView()) |
+ return FullyPainted; |
+ |
// If this layer is totally invisible then there is nothing to paint. |
if (!m_paintLayer.layoutObject()->opacity() && !m_paintLayer.layoutObject()->hasBackdropFilter()) |
return FullyPainted; |
@@ -206,6 +211,10 @@ PaintLayerPainter::PaintResult PaintLayerPainter::paintLayerContents(GraphicsCon |
if (paintFlags & PaintLayerPaintingRootBackgroundOnly && !m_paintLayer.layoutObject()->isLayoutView() && !m_paintLayer.layoutObject()->isDocumentElement()) |
return result; |
+ // TODO(skyostil): Unify this early-out logic with subsequence caching. |
+ if (m_paintLayer.layoutObject()->isLayoutPart() && toLayoutPart(m_paintLayer.layoutObject())->isThrottledFrameView()) |
+ return FullyPainted; |
+ |
PaintLayerPaintingInfo paintingInfo = paintingInfoArg; |
// Ensure our lists are up-to-date. |