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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerTest.cpp

Issue 2690633002: Fix PaintLayer::compositingContainer for self-painting non-stacked layers (Closed)
Patch Set: Created 3 years, 10 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/paint/PaintLayer.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/paint/PaintLayerTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
index 3efb930a86ea17a6c9440608cd518bccf4f3e17d..4110eb4a717474368ff429bef64c8cc53787954b 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
@@ -626,4 +626,23 @@ TEST_P(PaintLayerTest, CompositingContainerFloatingIframe) {
}
}
+TEST_P(PaintLayerTest, CompositingContainerSelfPaintingNonStackedFloat) {
+ setBodyInnerHTML(
+ "<div id='container' style='position: relative'>"
+ " <span id='span' style='opacity: 0.9'>"
+ " <div id='target' style='columns: 1; float: left'></div>"
+ " </span>"
+ "</div>");
+
+ // The target layer is self-painting, but not stacked.
+ PaintLayer* target =
+ toLayoutBoxModelObject(getLayoutObjectByElementId("target"))->layer();
+ EXPECT_TRUE(target->isSelfPaintingLayer());
+ EXPECT_FALSE(target->stackingNode()->isStacked());
+
+ PaintLayer* span =
+ toLayoutBoxModelObject(getLayoutObjectByElementId("span"))->layer();
+ EXPECT_EQ(span, target->compositingContainer());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698