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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp

Issue 2014093002: Fix LayoutObject::paintingLayer() about multicol spanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
index 747069d7845355b0e519b3acc56fcf69fe24de98..96062def291e194a72191c39760a8e595ef0a3e4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
@@ -109,4 +109,18 @@ TEST_F(LayoutObjectTest, ContainingBlockAbsoluteLayoutObjectShouldNotBeNonStatic
EXPECT_EQ(layoutObject->containingBlock(), bodyLayoutObject);
}
+TEST_F(LayoutObjectTest, PaintingLayerOfOverflowClipLayerUnderColumnSpanAll)
+{
+ setBodyInnerHTML(
+ "<div id='columns' style='columns: 3'>"
+ " <div style='column-span: all'>"
+ " <div id='overflow-clip-layer' style='height: 100px; overflow: hidden'></div>"
+ " </div>"
+ "</div>");
+
+ LayoutObject* overflowClipObject = getLayoutObjectByElementId("overflow-clip-layer");
+ LayoutBlock* columns = toLayoutBlock(getLayoutObjectByElementId("columns"));
+ EXPECT_EQ(columns->layer(), overflowClipObject->paintingLayer());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698