+2007-01-06 Rob Buis <buis@kde.org>
+
+ Reviewed by Darin.
+
+ Testcase for:
+ http://bugs.webkit.org/show_bug.cgi?id=12125
+ overflow attribute of the symbol element not respected
+
+ Also including changed testresults (improvements).
+
+ * svg/W3C-SVG-1.1/struct-symbol-01-b-expected.checksum:
+ * svg/W3C-SVG-1.1/struct-symbol-01-b-expected.png:
+ * svg/W3C-SVG-1.1/struct-symbol-01-b-expected.txt:
+ * svg/carto.net/window-expected.checksum:
+ * svg/carto.net/window-expected.png:
+ * svg/custom/use-symbol-overflow-expected.checksum: Added.
+ * svg/custom/use-symbol-overflow-expected.png: Added.
+ * svg/custom/use-symbol-overflow-expected.txt: Added.
+ * svg/custom/use-symbol-overflow.svg: Added.
+
2007-01-06 Darin Adler <darin@apple.com>
Suggested by Mitz.
-bb0634418a40c5de1cb822c8b4f3b419
\ No newline at end of file
+a97920a94b38670d839c72a49c9cea9b
\ No newline at end of file
RenderSVGContainer {g} at (0,0) size 1240x1150
RenderSVGContainer {use} at (0,0) size 1000x1000
RenderSVGContainer {g} at (0,0) size 1000x1000
- RenderSVGContainer {svg} at (45,0) size 150x150
+ RenderSVGContainer {svg} at (0,0) size 240x150
RenderImage {image} at (0,0) size 1000x1000
RenderSVGContainer {use} at (240,150) size 1000x1000
RenderSVGContainer {g} at (240,150) size 1000x1000 [transform={m=((1.00,0.00)(0.00,1.00)) t=(240.00,150.00)}]
- RenderSVGContainer {svg} at (285,150) size 150x150
- RenderPath {rect} at (285,150) size 75x75 [fill={[type=SOLID] [color=#FFFF00]}] [data="M0.00,0.00L500.00,0.00L500.00,500.00L0.00,500.00"]
- RenderPath {rect} at (360,150) size 75x75 [fill={[type=SOLID] [color=#FF0000]}] [data="M500.00,0.00L1000.00,0.00L1000.00,500.00L500.00,500.00"]
- RenderPath {rect} at (285,225) size 75x75 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,500.00L500.00,500.00L500.00,1000.00L0.00,1000.00"]
- RenderPath {rect} at (360,225) size 75x75 [fill={[type=SOLID] [color=#FFFF00]}] [data="M500.00,500.00L1000.00,500.00L1000.00,1000.00L500.00,1000.00"]
+ RenderSVGContainer {svg} at (240,150) size 240x150
+ RenderPath {rect} at (240,150) size 120x75 [fill={[type=SOLID] [color=#FFFF00]}] [data="M0.00,0.00L500.00,0.00L500.00,500.00L0.00,500.00"]
+ RenderPath {rect} at (360,150) size 120x75 [fill={[type=SOLID] [color=#FF0000]}] [data="M500.00,0.00L1000.00,0.00L1000.00,500.00L500.00,500.00"]
+ RenderPath {rect} at (240,225) size 120x75 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,500.00L500.00,500.00L500.00,1000.00L0.00,1000.00"]
+ RenderPath {rect} at (360,225) size 120x75 [fill={[type=SOLID] [color=#FFFF00]}] [data="M500.00,500.00L1000.00,500.00L1000.00,1000.00L500.00,1000.00"]
RenderSVGText {text} at (10,340) size 480x46
RenderSVGInlineText {#text} at (0,-36) size 264x46
text run at (0,-36) width 264: "$Revision: 1.6 $"
-bf4f7249c62d8a4aca577ce3fbe6c978
\ No newline at end of file
+7a696a0b8d582b1e07fae7cdeb22121d
\ No newline at end of file
--- /dev/null
+16310588467cfc20d551635abc59b784
\ No newline at end of file
--- /dev/null
+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
+ RenderSVGContainer {use} at (0,0) size 100x100
+ RenderSVGContainer {g} at (0,0) size 100x100 [transform={m=((1.00,0.00)(0.00,1.00)) t=(50.00,50.00)}]
+ RenderSVGContainer {svg} at (0,0) size 100x100
+ RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M-50.00,-50.00L50.00,-50.00L50.00,50.00L-50.00,50.00"]
--- /dev/null
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
+<svg version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
+ <defs>
+ <symbol id="symbolRect" overflow="visible">
+ <rect x="-50" y="-50" width="100" height="100" fill="green"/>
+ </symbol>
+ </defs>
+ <use id="Zuerich" x="50" y="50" xlink:href="#symbolRect"/>
+</svg>
+
+2007-01-06 Rob Buis <buis@kde.org>
+
+ Reviewed by Darin.
+
+ http://bugs.webkit.org/show_bug.cgi?id=12125
+ overflow attribute of the symbol element not respected
+
+ Copy the attribute map to the cloned node so the overflow on
+ the symbol is respected.
+
+ * ksvg2/svg/SVGUseElement.cpp:
+ (WebCore::SVGUseElement::closeRenderer):
+
2007-01-06 Eric Seidel <eric@webkit.org>
Reviewed and significantly tweaked by Darin.
dummy->setAttribute(SVGNames::viewBoxAttr, symbolViewBox);
}
target->cloneChildNodes(dummy.get());
+ *dummy->attributes() = *target->attributes();
RefPtr<SVGElement> dummy2 = new SVGDummyElement(SVGNames::gTag, document());
dummy2->setAttribute(SVGNames::transformAttr, trans);