Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r270698 - [TextureMapper] REGRESION(r269570): mask layer doesn'…
…t clip descendent layers https://bugs.webkit.org/show_bug.cgi?id=219136 <rdar://problem/71742605> Reviewed by Carlos Garcia Campos. Source/WebCore: computeOverlapRegions shouldn't include the descendent layer region for layers with a mask layer. Add a new mode Mask to ComputeOverlapRegionMode which is like Union mode but doesn't include descendent layers. Test: compositing/masks/clip-path-composited-descendent-2.html * platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::computeOverlapRegions): Skip children for the Mask mode. (WebCore::TextureMapperLayer::paintUsingOverlapRegions): Use ComputeOverlapRegionMode::Mask for a layer with mask layer. * platform/graphics/texmap/TextureMapperLayer.h (ComputeOverlapRegionMode): Added Mask. LayoutTests: * compositing/masks/clip-path-composited-descendent-2-expected.html: Added. * compositing/masks/clip-path-composited-descendent-2.html: Added.
- Loading branch information
1 parent
478c406
commit 279dc4e
Showing
6 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
LayoutTests/compositing/masks/clip-path-composited-descendent-2-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Tests that clip-path with a composited descendent</title> | ||
<style> | ||
.box { | ||
width: 200px; | ||
height: 200px; | ||
background-color: red; | ||
clip-path: circle(80px at 100px 100px); | ||
} | ||
.box div { | ||
width: 200px; | ||
height: 200px; | ||
background-color: green; | ||
will-change: transform; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
There should be only one green circle. | ||
<div class="box"> | ||
<div></div> | ||
</div> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
LayoutTests/compositing/masks/clip-path-composited-descendent-2.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Tests that clip-path with a composited descendent</title> | ||
<style> | ||
.box { | ||
width: 200px; | ||
height: 200px; | ||
background-color: red; | ||
clip-path: circle(80px at 100px 100px); | ||
} | ||
.box div { | ||
width: 300px; | ||
height: 300px; | ||
background-color: green; | ||
will-change: transform; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
There should be only one green circle. | ||
<div class="box"> | ||
<div></div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters