Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2010-07-16 Cosmin Truta <ctruta@chromium.org>
Reviewed by Eric Seidel. Some SVGs with empty <g> elements crash Chromium on Linux https://bugs.webkit.org/show_bug.cgi?id=41175 This is a SVG with an empty <g> within a <g>, to which a filter is applied by reference. The rendered image is all blank. * platform/mac/svg/filters/filter-empty-g-expected.checksum: Added * platform/mac/svg/filters/filter-empty-g-expected.png: Added * platform/mac/svg/filters/filter-empty-g-expected.txt: Added * svg/filters/filter-empty-g.svg: Added 2010-07-16 Cosmin Truta <ctruta@chromium.org> Reviewed by Eric Seidel. Some SVGs with empty <g> elements crash Chromium on Linux https://bugs.webkit.org/show_bug.cgi?id=41175 Avoid painting of zero-sized image buffers. Skia can't handle it. Test: svg/filters/filter-empty-g.svg * WebCore/platform/graphics/skia/ImageBufferSkia.cpp: (ImageBuffer::ImageBuffer): Canonical link: https://commits.webkit.org/54370@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
58 additions
and 1 deletion.
- +15 −0 LayoutTests/ChangeLog
- +3 −0 LayoutTests/platform/chromium/test_expectations.txt
- +1 −0 LayoutTests/platform/mac/svg/filters/filter-empty-g-expected.checksum
- BIN LayoutTests/platform/mac/svg/filters/filter-empty-g-expected.png
- +11 −0 LayoutTests/platform/mac/svg/filters/filter-empty-g-expected.txt
- +10 −0 LayoutTests/svg/filters/filter-empty-g.svg
- +14 −0 WebCore/ChangeLog
- +4 −1 WebCore/platform/graphics/skia/ImageBufferSkia.cpp
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
@@ -0,0 +1 @@ | ||
853de00567d121bea0b7bece66a5d61c |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@@ -0,0 +1,11 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderSVGRoot {svg} at (0,0) size 800x600 | ||
RenderSVGHiddenContainer {defs} at (0,0) size 0x0 | ||
RenderSVGResourceFilter {filter} [id="foo"] [filterUnits=userSpaceOnUse] [primitiveUnits=userSpaceOnUse] | ||
[feGaussianBlur stdDeviation="3.00, 3.00"] | ||
[SourceAlpha] | ||
RenderSVGContainer {g} at (0,0) size 800x600 | ||
RenderSVGContainer {g} at (0,0) size 800x600 | ||
[filter="foo"] RenderSVGResourceFilter {filter} at (-80,-60) size 960x720 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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