Reviewed by mjs.
SVG gradients do not notice stop additions
http://bugs.webkit.org/show_bug.cgi?id=12192
Test: svg/custom/gradient-add-stops.svg
* ksvg2/svg/SVGGradientElement.cpp:
(WebCore::SVGGradientElement::childrenChanged):
* ksvg2/svg/SVGGradientElement.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18856
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-01-15 Eric Seidel <eric@eseidel.com>
+
+ Reviewed by mjs.
+
+ SVG gradients do not notice stop additions
+ http://bugs.webkit.org/show_bug.cgi?id=12192
+
+ * svg/custom/gradient-add-stops-expected.checksum: Added.
+ * svg/custom/gradient-add-stops-expected.png: Added.
+ * svg/custom/gradient-add-stops-expected.txt: Added.
+ * svg/custom/gradient-add-stops.svg: Added.
+
2007-01-14 Eric Seidel <eric@webkit.org>
Reviewed by hyatt.
--- /dev/null
+16310588467cfc20d551635abc59b784
\ No newline at end of file
--- /dev/null
+KRenderingPaintServer {id="test" [type=LINEAR-GRADIENT] [stops=[(0.00,#FF0000), (0.00,#008000)]] [start=(0,0)] [end=(1,0)]}
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+ RenderSVGContainer {svg} at (0,0) size 100x100
+ RenderSVGContainer {defs} at (0,0) size 0x0
+ RenderPath {rect} at (0,0) size 100x100 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FF0000), (0.00,#008000)]] [start=(0,0)] [end=(1,0)]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
--- /dev/null
+<svg xmlns='http://www.w3.org/2000/svg'>
+ <defs>
+ <linearGradient id='test'>
+ <stop id='stop' offset='0' stop-color='red' />
+ </linearGradient>
+ </defs>
+ <rect fill="url(#test)" width='100' height='100' />
+ <script>
+ <![CDATA[
+ if (window.layoutTestController)
+ layoutTestController.waitUntilDone();
+ var loaded = function() {
+ var gradient = document.getElementById("test");
+ var stop = document.createElementNS('http://www.w3.org/2000/svg', 'stop');
+ stop.setAttribute("offset", "0");
+ stop.style.stopColor = 'green';
+ gradient.appendChild(stop);
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+ window.setTimeout(loaded, 0);
+ ]]>
+ </script>
+</svg>
+2007-01-15 Eric Seidel <eric@eseidel.com>
+
+ Reviewed by mjs.
+
+ SVG gradients do not notice stop additions
+ http://bugs.webkit.org/show_bug.cgi?id=12192
+
+ Test: svg/custom/gradient-add-stops.svg
+
+ * ksvg2/svg/SVGGradientElement.cpp:
+ (WebCore::SVGGradientElement::childrenChanged):
+ * ksvg2/svg/SVGGradientElement.h:
+
2007-01-14 David Hyatt <hyatt@apple.com>
Fix for bug 10356, positioning doesn't work with <svg> elements in XHTML. Change the requiresLayer
SVGResource::repaintClients(extensions->removePendingResource(resourceId));
}
+void SVGGradientElement::childrenChanged()
+{
+ notifyAttributeChange();
+ SVGStyledElement::childrenChanged();
+}
+
}
#endif // SVG_SUPPORT
virtual SVGResource* canvasResource();
virtual void insertedIntoDocument();
+ virtual void childrenChanged();
protected:
friend class SVGPaintServerGradient;