Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r269588 - [TextureMapper] The top and left sides of drop-shadow…
… are clipped https://bugs.webkit.org/show_bug.cgi?id=218647 Reviewed by Don Olmstead. Source/WebCore: TextureMapperLayer::computeOverlapRegions incorrectly calculated the local bounding rect for top and left of outsets. The drop-shadow was incorrectly blended with the content. Test: compositing/filters/drop-shadow.html * platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::computeOverlapRegions): Stopped using std::max for the left and top of outsets. Stopped taking the unite with unfilteredTargetRect because outsets are always positive. * platform/graphics/texmap/TextureMapperShaderProgram.cpp: Fixed sourceOver(). LayoutTests: * compositing/filters/drop-shadow-expected.html: Added. * compositing/filters/drop-shadow.html: Added.
- Loading branch information
1 parent
66a605f
commit 866dfa8
Showing
6 changed files
with
115 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
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,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
#x { | ||
transform: translate(100px, 100px); | ||
} | ||
div div { | ||
position: absolute; | ||
width: 100px; | ||
height: 100px; | ||
background: green; | ||
} | ||
.a { | ||
transform: translate(-60px, -60px); | ||
filter: drop-shadow(-20px -20px 0px blue); | ||
} | ||
.b { | ||
transform: translate(-60px, 60px); | ||
filter: drop-shadow(-20px 20px 0px blue); | ||
} | ||
.c { | ||
transform: translate(60px, -60px); | ||
filter: drop-shadow(20px -20px 0px blue); | ||
} | ||
.d { | ||
transform: translate(60px, 60px); | ||
filter: drop-shadow(20px 20px 0px blue); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id=x> | ||
<div class=a></div> | ||
<div class=b></div> | ||
<div class=c></div> | ||
<div class=d></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
#x { | ||
transform: translate(100px, 100px); | ||
} | ||
div div { | ||
position: absolute; | ||
width: 100px; | ||
height: 100px; | ||
background: green; | ||
will-change: transform; | ||
} | ||
.a { | ||
transform: translate(-60px, -60px); | ||
filter: drop-shadow(-20px -20px 0px blue); | ||
} | ||
.b { | ||
transform: translate(-60px, 60px); | ||
filter: drop-shadow(-20px 20px 0px blue); | ||
} | ||
.c { | ||
transform: translate(60px, -60px); | ||
filter: drop-shadow(20px -20px 0px blue); | ||
} | ||
.d { | ||
transform: translate(60px, 60px); | ||
filter: drop-shadow(20px 20px 0px blue); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id=x> | ||
<div class=a></div> | ||
<div class=b></div> | ||
<div class=c></div> | ||
<div class=d></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