haikuwebkit/LayoutTests/svg/custom/gradient-in-symbol-expected...

10 lines
350 B
XML
Raw Permalink Normal View History

[SVG] getBBox on a <g> within symbol returns 0 but with defs it works correctly https://bugs.webkit.org/show_bug.cgi?id=72796 SVG <use> of <symbol> containing <linearGradient> renders black https://bugs.webkit.org/show_bug.cgi?id=82775 Source/WebCore: Reviewed by Dirk Schulze. Create RenderSVGHiddenContainer for each <symbol>, which allows creation of child renderers too. This fixes both bugs since the bbox can be calculated at all times now and gradients in <symbol> are always created. This does allocate more memory but in general <symbol> is not used a lot and they tend to be small subtrees. Patch by Leo Yang. Tests: svg/custom/bbox-of-g-in-symbol.svg svg/custom/gradient-in-symbol-expected.svg svg/custom/gradient-in-symbol.svg * svg/SVGSymbolElement.cpp: (WebCore::SVGSymbolElement::createRenderer): (WebCore): * svg/SVGSymbolElement.h: (SVGSymbolElement): LayoutTests: Add a new test for each bug. Also rebaseline some test results since RenderSVGHiddenContainer is dumped now. Reviewed by Dirk Schulze. * platform/chromium/test_expectations.txt: * platform/mac/svg/W3C-SVG-1.1/struct-symbol-01-b-expected.txt: * platform/mac/svg/carto.net/button-expected.txt: * platform/mac/svg/carto.net/colourpicker-expected.txt: * platform/mac/svg/carto.net/slider-expected.txt: * platform/mac/svg/carto.net/window-expected.txt: * platform/mac/svg/custom/embedding-external-svgs-expected.txt: * platform/mac/svg/custom/relative-sized-shadow-tree-content-with-symbol-expected.txt: * platform/mac/svg/custom/relative-sized-use-on-symbol-expected.txt: * platform/mac/svg/custom/relative-sized-use-without-attributes-on-symbol-expected.txt: * platform/mac/svg/custom/struct-use-09-b-expected.txt: Removed. * platform/mac/svg/custom/use-clipped-hit-expected.txt: * platform/mac/svg/custom/use-css-events-expected.txt: * platform/mac/svg/custom/use-modify-target-symbol-expected.txt: * platform/mac/svg/custom/use-on-disallowed-foreign-object-5-expected.txt: * platform/mac/svg/custom/use-on-g-containing-symbol-expected.txt: * platform/mac/svg/custom/use-on-symbol-expected.txt: * platform/mac/svg/custom/use-on-symbol-inside-pattern-expected.txt: * platform/mac/svg/custom/use-recalcStyle-crash-expected.txt: * platform/mac/svg/custom/use-referencing-nonexisting-symbol-expected.txt: * platform/mac/svg/custom/use-symbol-overflow-expected.txt: * platform/qt/svg/W3C-SVG-1.1/struct-symbol-01-b-expected.txt: * platform/qt/svg/carto.net/button-expected.txt: * platform/qt/svg/carto.net/colourpicker-expected.txt: * platform/qt/svg/carto.net/slider-expected.txt: * platform/qt/svg/carto.net/window-expected.txt: * platform/qt/svg/custom/relative-sized-shadow-tree-content-with-symbol-expected.txt: * platform/qt/svg/custom/use-on-g-containing-symbol-expected.txt: * platform/qt/svg/custom/use-on-symbol-expected.txt: * platform/qt/svg/custom/use-recalcStyle-crash-expected.txt: * platform/qt/svg/custom/use-referencing-nonexisting-symbol-expected.txt: * platform/qt/svg/custom/use-transfer-width-height-properties-to-svg2-expected.txt: * platform/qt/svg/custom/use-transfer-width-height-properties-to-symbol-expected.txt: * platform/qt/svg/custom/use-transfer-width-height-properties-to-symbol2-expected.txt: * svg/custom/bbox-of-g-in-symbol-expected.txt: Added. * svg/custom/bbox-of-g-in-symbol.svg: Added. * svg/custom/deep-dynamic-updates-expected.txt: * svg/custom/gradient-in-symbol-expected.svg: Added. * svg/custom/gradient-in-symbol.svg: Added. * svg/custom/use-in-symbol-with-offset-expected.txt: * svg/custom/use-setAttribute-crash-expected.txt: * svg/custom/use-transfer-width-height-properties-to-svg2-expected.txt: * svg/custom/use-transfer-width-height-properties-to-symbol-expected.txt: * svg/custom/use-transfer-width-height-properties-to-symbol1-expected.txt: * svg/custom/use-transfer-width-height-properties-to-symbol2-expected.txt: Canonical link: https://commits.webkit.org/102243@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-24 18:21:58 +00:00
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0">
<defs>
<linearGradient id="SVGID_15" x1="100%" y1="100%">
<stop offset="0" stop-color="#FFFFFF"/>
<stop offset="1" stop-color="#00FF00"/>
</linearGradient>
</defs>
<rect fill="url(#SVGID_15)" width="100" height="100"/>
</svg>