Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r246309 - [cairo][SVG] Putting multiple path elements in clippa…
…th causes rendering artifacts https://bugs.webkit.org/show_bug.cgi?id=198701 Source/WebCore: PlatformContextCairo::pushImageMask blits wrong position of the surface to the background of masking objects. And, I don't know the reason why this blitting is needed. Removed the blitting. Reviewed by Carlos Garcia Campos. Tests: svg/clip-path/clip-opacity.html svg/clip-path/svg-in-html.html * platform/graphics/cairo/PlatformContextCairo.cpp: (WebCore::PlatformContextCairo::pushImageMask): Don't blit the surface to the background. LayoutTests: Reviewed by Carlos Garcia Campos. * platform/gtk/TestExpectations: * platform/wpe/TestExpectations: Unskipped svg/gradients/spreadMethodDiagonal3.svg and svg/gradients/spreadMethodDiagonal4.svg. * svg/clip-path/clip-opacity-expected.html: Added. * svg/clip-path/clip-opacity.html: Added. * svg/clip-path/svg-in-html-expected.html: Added. * svg/clip-path/svg-in-html.html: Added.
- Loading branch information
1 parent
ef6bab6
commit bd03030
Showing
9 changed files
with
191 additions
and
21 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
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,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="350"> | ||
<g> | ||
<circle cx="50" cy="50" r="50" fill="green"/> | ||
<circle cx="100" cy="50" r="50" fill="red" /> | ||
<g> | ||
<circle cx="50" cy="100" r="50" fill="green" opacity=".5" /> | ||
<circle cx="100" cy="100" r="50" fill="red" opacity=".5" /> | ||
</g> | ||
</g> | ||
<g transform="translate(200,0)"> | ||
<circle cx="50" cy="50" r="50" fill="green"/> | ||
<circle cx="100" cy="50" r="50" fill="red" /> | ||
<g> | ||
<circle cx="50" cy="100" r="50" fill="green" opacity=".5" /> | ||
<circle cx="100" cy="100" r="50" fill="red" opacity=".5" /> | ||
</g> | ||
</g> | ||
</svg> | ||
</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,32 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="350"> | ||
<defs> | ||
<clipPath id="clip1"> | ||
<rect width="200" height="200"/> | ||
</clipPath> | ||
<clipPath id="clip2"> | ||
<rect width="200" height="200"/> | ||
<rect width="200" height="200"/> | ||
</clipPath> | ||
</defs> | ||
<g> | ||
<circle cx="50" cy="50" r="50" fill="green"/> | ||
<circle cx="100" cy="50" r="50" fill="red" /> | ||
<g clip-path="url(#clip1)"> | ||
<circle cx="50" cy="100" r="50" fill="green" opacity=".5" /> | ||
<circle cx="100" cy="100" r="50" fill="red" opacity=".5" /> | ||
</g> | ||
</g> | ||
<g transform="translate(200,0)"> | ||
<circle cx="50" cy="50" r="50" fill="green"/> | ||
<circle cx="100" cy="50" r="50" fill="red" /> | ||
<g clip-path="url(#clip2)"> | ||
<circle cx="50" cy="100" r="50" fill="green" opacity=".5" /> | ||
<circle cx="100" cy="100" r="50" fill="red" opacity=".5" /> | ||
</g> | ||
</g> | ||
</svg> | ||
</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,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
body { | ||
border: 2em blue solid; | ||
} | ||
svg { | ||
background: pink; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<g> | ||
<circle cx="1" cy="1" r="1" fill="green"></circle> | ||
<circle cx="7" cy="1" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<g> | ||
<circle cx="1" cy="7" r="1" fill="green"></circle> | ||
<circle cx="7" cy="7" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
<br> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<g> | ||
<circle cx="1" cy="1" r="1" fill="green"></circle> | ||
<circle cx="7" cy="1" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<g> | ||
<circle cx="1" cy="7" r="1" fill="green"></circle> | ||
<circle cx="7" cy="7" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
</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,62 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
body { | ||
border: 2em blue solid; | ||
} | ||
svg { | ||
background: pink; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<clippath id="clip1"> | ||
<rect width="8" height="4"></rect> | ||
</clippath> | ||
<g clip-path="url(#clip1)"> | ||
<circle cx="1" cy="1" r="1" fill="green"></circle> | ||
<circle cx="7" cy="1" r="1" fill="green"></circle> | ||
<circle cx="1" cy="7" r="1" fill="green"></circle> | ||
<circle cx="7" cy="7" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<clippath id="clip2"> | ||
<rect y="4" width="8" height="4"></rect> | ||
</clippath> | ||
<g clip-path="url(#clip2)"> | ||
<circle cx="1" cy="1" r="1" fill="green"></circle> | ||
<circle cx="7" cy="1" r="1" fill="green"></circle> | ||
<circle cx="1" cy="7" r="1" fill="green"></circle> | ||
<circle cx="7" cy="7" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
<br> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<clippath id="clip3"> | ||
<rect width="8" height="2"></rect> | ||
<rect y="4" width="8" height="2"></rect> | ||
</clippath> | ||
<g clip-path="url(#clip3)"> | ||
<circle cx="1" cy="1" r="1" fill="green"></circle> | ||
<circle cx="7" cy="1" r="1" fill="green"></circle> | ||
<circle cx="1" cy="7" r="1" fill="green"></circle> | ||
<circle cx="7" cy="7" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
<svg width="200px" height="200px" viewBox="0 0 8 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<clippath id="clip4"> | ||
<rect y="2" width="8" height="2"></rect> | ||
<rect y="6" width="8" height="2"></rect> | ||
</clippath> | ||
<g clip-path="url(#clip4)"> | ||
<circle cx="1" cy="1" r="1" fill="green"></circle> | ||
<circle cx="7" cy="1" r="1" fill="green"></circle> | ||
<circle cx="1" cy="7" r="1" fill="green"></circle> | ||
<circle cx="7" cy="7" r="1" fill="green"></circle> | ||
</g> | ||
</svg> | ||
</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