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

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

Issue 2611233003: When setting needsRepaint, don't stop at non-stacking composited PaintLayers. (Closed)
Patch Set: none Created 3 years, 11 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 5804a8c665085f419ecfd4a3775289a325fcd999..410c2cb5ad80094e7979b3464cd533870349375c 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerTest.cpp
@@ -498,4 +498,22 @@ TEST_P(PaintLayerTest, PaintInvalidationOnCompositedScroll) {
EXPECT_EQ(LayoutRect(0, 30, 50, 5), content->visualRect());
}
+TEST_P(PaintLayerTest, CompositingContainerFloat) {
+ enableCompositing();
+ setBodyInnerHTML(
+ "<div id='containingBlock' style='position: relative; z-index: 0'>"
+ " <div style='backface-visibility: hidden'></div>"
+ " <span style='clip-path: polygon(0px 15px, 0px 54px, 100px 0px)'>"
+ " <div id='target' style='float: right; position: relative'></div>"
+ " </span>"
+ "</div>");
+
+ PaintLayer* target =
+ toLayoutBoxModelObject(getLayoutObjectByElementId("target"))->layer();
+ PaintLayer* containingBlock =
+ toLayoutBoxModelObject(getLayoutObjectByElementId("containingBlock"))
+ ->layer();
+ EXPECT_EQ(containingBlock, 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