Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1195)

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 612363002: Let the RenderFlowThread layer have an empty size. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nits Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/multicol/composited-layer-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « LayoutTests/fast/multicol/composited-layer-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698