Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 63e83e3d8eff1a0b96387ac499894f9d9a82d102..59741e86d6ce412df91f3a0ee16feb1f80ded73b 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -3147,6 +3147,12 @@ LayoutRect RenderLayer::boundingBoxForCompositing(const RenderLayer* ancestorLay |
if (isRootLayer()) |
return m_renderer->view()->unscaledDocumentRect(); |
+ // The layer created for the RenderFlowThread is just a helper for painting and hit-testing, |
+ // and should not contribute to the bounding box. The RenderMultiColumnSets will contribute |
+ // the correct size for the rendered content of the multicol container. |
+ if (useRegionBasedColumns() && renderer()->isRenderFlowThread()) |
+ return LayoutRect(); |
+ |
const bool shouldIncludeTransform = paintsWithTransform(PaintBehaviorNormal) || (options == ApplyBoundsChickenEggHacks && transform()); |
LayoutRect localClipRect = clipper().localClipRect(); |