Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
index b0755de97eb432595878d3979350ce6e5b0dde45..7fb3db27db64cfe3023cfe7cd71d1b026fc02f31 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
@@ -1558,16 +1558,10 @@ void PaintLayer::collectFragments( |
const LayoutPoint* offsetFromRoot, |
const LayoutSize& subPixelAccumulation, |
const LayoutRect* layerBoundingBox) { |
- if (!enclosingPaginationLayer()) { |
- // For unpaginated layers, there is only one fragment. |
- appendSingleFragmentIgnoringPagination( |
- fragments, rootLayer, dirtyRect, clipRectsCacheSlot, |
- geometryMapperOption, overlayScrollbarClipBehavior, respectOverflowClip, |
- offsetFromRoot, subPixelAccumulation); |
- return; |
- } |
- |
- if (!shouldFragmentCompositedBounds(rootLayer)) { |
+ // For unpaginated layers, there is only one fragment. We also avoid |
+ // fragmentation when compositing, due to implementation limitations. |
+ if (!enclosingPaginationLayer() || |
+ !shouldFragmentCompositedBounds(rootLayer)) { |
appendSingleFragmentIgnoringPagination( |
fragments, rootLayer, dirtyRect, clipRectsCacheSlot, |
geometryMapperOption, overlayScrollbarClipBehavior, respectOverflowClip, |