2006-08-14 Eric Seidel <eric@eseidel.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Aug 2006 06:40:03 +0000 (06:40 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Aug 2006 06:40:03 +0000 (06:40 +0000)
        Reviewed by mjs.

        <mask>, <marker>, <pattern> inside <defs> do not work
        http://bugzilla.opendarwin.org/show_bug.cgi?id=6548

        * ksvg2/svg/SVGDefsElement.cpp:
        (WebCore::SVGDefsElement::SVGDefsElement): moved to .cpp file
        (WebCore::SVGDefsElement::isValid): moved to .cpp file
        (WebCore::SVGDefsElement::rendererIsNeeded): Added.
        (WebCore::SVGDefsElement::createRenderer): Added.
        * ksvg2/svg/SVGDefsElement.h:
        * ksvg2/svg/SVGGElement.cpp:
        (WebCore::SVGGElement::SVGGElement): adjusted spacing
        (WebCore::SVGGElement::parseMappedAttribute): adjusted spacing
        (WebCore::SVGDummyElement::SVGDummyElement): adjusted spacing

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15872 268f45cc-cd09-0410-ab3c-d52691b4dbfc

73 files changed:
LayoutTests/ChangeLog
LayoutTests/svg/W3C-SVG-1.1/animate-elem-03-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-24-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/color-prof-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/color-prop-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/extend-namespace-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-blend-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-color-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-composite-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-conv-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-diffuse-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-displace-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-example-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-gauss-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-image-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-light-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-offset-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-specular-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-tile-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-turb-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-01-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-02-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-03-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-cursor-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-events-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-order-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-order-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-order-03-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/masking-mask-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/masking-path-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/masking-path-04-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/painting-marker-02-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/painting-render-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/pservers-grad-08-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/render-elems-06-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/render-elems-07-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/render-elems-08-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/render-groups-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/render-groups-03-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-defs-01-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-image-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/styling-css-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/styling-css-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/styling-css-03-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-align-04-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-altglyph-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-path-01-b-expected.txt
LayoutTests/svg/custom/empty-merge-expected.txt
LayoutTests/svg/custom/feComponentTransfer-Discrete-expected.txt
LayoutTests/svg/custom/feComponentTransfer-Gamma-expected.txt
LayoutTests/svg/custom/feComponentTransfer-Linear-expected.txt
LayoutTests/svg/custom/feComponentTransfer-Table-expected.txt
LayoutTests/svg/custom/feDisplacementMap-01-expected.txt
LayoutTests/svg/custom/filter-source-alpha-expected.txt
LayoutTests/svg/custom/gradient-stroke-width-expected.txt
LayoutTests/svg/custom/grayscale-gradient-mask-expected.txt
LayoutTests/svg/custom/image-with-transform-clip-filter-expected.txt
LayoutTests/svg/custom/invalid-css-expected.txt
LayoutTests/svg/custom/non-opaque-filters-expected.txt
LayoutTests/svg/custom/pattern-in-defs-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/pattern-in-defs-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/pattern-in-defs-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/pattern-in-defs.svg [new file with mode: 0644]
LayoutTests/svg/custom/text-clip-expected.txt
LayoutTests/svg/custom/text-filter-expected.txt
LayoutTests/svg/custom/tref-update-expected.txt
WebCore/ChangeLog
WebCore/ksvg2/svg/SVGDefsElement.cpp
WebCore/ksvg2/svg/SVGDefsElement.h
WebCore/ksvg2/svg/SVGGElement.cpp

index e9d0dda5231ad9c97a6fe9225218c15891c3331a..865a46625b162ffb84f7639bf56c742767d12199 100644 (file)
@@ -1,3 +1,80 @@
+2006-08-14  Eric Seidel  <eric@eseidel.com>
+
+        Reviewed by mjs.
+        
+        Updated results for:
+        <mask>, <marker>, <pattern> inside <defs> do not work
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=6548
+
+        * svg/W3C-SVG-1.1/animate-elem-03-t-expected.txt:
+        * svg/W3C-SVG-1.1/animate-elem-24-t-expected.txt:
+        * svg/W3C-SVG-1.1/color-prof-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/color-prop-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/extend-namespace-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-blend-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-color-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-composite-02-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-conv-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-diffuse-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-displace-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-example-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-gauss-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-image-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-light-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-offset-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-specular-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/filters-tile-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/filters-turb-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/fonts-elem-01-t-expected.txt:
+        * svg/W3C-SVG-1.1/fonts-elem-02-t-expected.txt:
+        * svg/W3C-SVG-1.1/fonts-elem-03-b-expected.txt:
+        * svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt:
+        * svg/W3C-SVG-1.1/interact-cursor-01-f-expected.txt:
+        * svg/W3C-SVG-1.1/interact-events-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/interact-order-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/interact-order-02-b-expected.txt:
+        * svg/W3C-SVG-1.1/interact-order-03-b-expected.txt:
+        * svg/W3C-SVG-1.1/masking-mask-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/masking-path-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/masking-path-04-b-expected.txt:
+        * svg/W3C-SVG-1.1/painting-marker-02-f-expected.txt:
+        * svg/W3C-SVG-1.1/painting-render-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/pservers-grad-08-b-expected.txt:
+        * svg/W3C-SVG-1.1/render-elems-06-t-expected.txt:
+        * svg/W3C-SVG-1.1/render-elems-07-t-expected.txt:
+        * svg/W3C-SVG-1.1/render-elems-08-t-expected.txt:
+        * svg/W3C-SVG-1.1/render-groups-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/render-groups-03-t-expected.txt:
+        * svg/W3C-SVG-1.1/struct-defs-01-t-expected.txt:
+        * svg/W3C-SVG-1.1/struct-image-02-b-expected.txt:
+        * svg/W3C-SVG-1.1/styling-css-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/styling-css-02-b-expected.txt:
+        * svg/W3C-SVG-1.1/styling-css-03-b-expected.txt:
+        * svg/W3C-SVG-1.1/text-align-04-b-expected.txt:
+        * svg/W3C-SVG-1.1/text-altglyph-01-b-expected.txt:
+        * svg/W3C-SVG-1.1/text-path-01-b-expected.txt:
+        * svg/custom/empty-merge-expected.txt:
+        * svg/custom/feComponentTransfer-Discrete-expected.txt:
+        * svg/custom/feComponentTransfer-Gamma-expected.txt:
+        * svg/custom/feComponentTransfer-Linear-expected.txt:
+        * svg/custom/feComponentTransfer-Table-expected.txt:
+        * svg/custom/feDisplacementMap-01-expected.txt:
+        * svg/custom/filter-source-alpha-expected.txt:
+        * svg/custom/gradient-stroke-width-expected.txt:
+        * svg/custom/grayscale-gradient-mask-expected.txt:
+        * svg/custom/image-with-transform-clip-filter-expected.txt:
+        * svg/custom/invalid-css-expected.txt:
+        * svg/custom/non-opaque-filters-expected.txt:
+        * svg/custom/pattern-in-defs-expected.checksum: Added.
+        * svg/custom/pattern-in-defs-expected.png: Added.
+        * svg/custom/pattern-in-defs-expected.txt: Added.
+        * svg/custom/pattern-in-defs.svg: Added.
+        * svg/custom/text-clip-expected.txt:
+        * svg/custom/text-filter-expected.txt:
+        * svg/custom/tref-update-expected.txt:
+
 2006-08-14  Eric Seidel  <eric@eseidel.com>
 
         Reviewed by darin and mjs.
index 780228f25af2fde78919422cb8f721aa60ec5da6..db7ac3ce1eede53084c7761c1dc74403d8292196 100644 (file)
@@ -1,6 +1,7 @@
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0,0) size 0x0
         KCanvasContainer {g} at (0,0) size 0x0
           KCanvasContainer {g} at (0,0) size 0x0
index 039eeb14423ce1f3acdff9772bace613cb098491..9b2b5a9198b3527dafd887bcbd275ab2e8bf02a7 100644 (file)
@@ -1,6 +1,7 @@
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0,0) size 0x0
         KCanvasContainer {g} at (0,0) size 0x0
           RenderSVGText {text} at (0,0) size 465x23
index 08ed0ed9b2b94386da4ec60d20e6b3f9022f351e..1fde2c8f5b543d099aa12446bbd85e5fb454b072 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0) size 479x359.50
       KCanvasContainer {g} at (30,0) size 420x280
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (30,0) size 190x190
           RenderImage {image} at (0,0) size 190x190
         KCanvasContainer {g} at (260,90) size 190x190
index 10c98be05f2ece13abcd5b5bab96b6523343d8ae..83c4b481c1d09867be59e9133bb1f435a595631a 100644 (file)
@@ -3,6 +3,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (60,18.00) size 360x277.00
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (70,18.00) size 342.00x124.00
           KCanvasContainer {g} at (70,18.00) size 342.00x124.00
             KCanvasItem {circle} at (70,20) size 120x120 [fill={[type=SOLID] [color=#FF0000]}] [data="M190.00,80.00L189.88,83.77L189.53,87.52L188.94,91.24L188.11,94.92L187.06,98.54L185.79,102.09L184.29,105.55L182.58,108.91L180.66,112.15L178.54,115.27L176.23,118.25L173.74,121.07L171.07,123.74L168.25,126.23L165.27,128.54L162.15,130.66L158.91,132.58L155.55,134.29L152.09,135.79L148.54,137.06L144.92,138.11L141.24,138.94L137.52,139.53L133.77,139.88L130.00,140.00L126.23,139.88L122.48,139.53L118.76,138.94L115.08,138.11L111.46,137.06L107.91,135.79L104.45,134.29L101.09,132.58L97.85,130.66L94.73,128.54L91.75,126.23L88.93,123.74L86.26,121.07L83.77,118.25L81.46,115.27L79.34,112.15L77.42,108.91L75.71,105.55L74.21,102.09L72.94,98.54L71.89,94.92L71.06,91.24L70.47,87.52L70.12,83.77L70.00,80.00L70.12,76.23L70.47,72.48L71.06,68.76L71.89,65.08L72.94,61.46L74.21,57.91L75.71,54.45L77.42,51.09L79.34,47.85L81.46,44.73L83.77,41.75L86.26,38.93L88.93,36.26L91.75,33.77L94.73,31.46L97.85,29.34L101.09,27.42L104.45,25.71L107.91,24.21L111.46,22.94L115.08,21.89L118.76,21.06L122.48,20.47L126.23,20.12L130.00,20.00L133.77,20.12L137.52,20.47L141.24,21.06L144.92,21.89L148.54,22.94L152.09,24.21L155.55,25.71L158.91,27.42L162.15,29.34L165.27,31.46L168.25,33.77L171.07,36.26L173.74,38.93L176.23,41.75L178.54,44.73L180.66,47.85L182.58,51.09L184.29,54.45L185.79,57.91L187.06,61.46L188.11,65.08L188.94,68.76L189.53,72.48L189.88,76.23"]
index 990628554865ec0d10795060d1e64d747a0037ed..2dd0f9eb388a93b410aa96fd40f8e2372f085bbb 100644 (file)
@@ -3,6 +3,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (126.05,61.42) size 242.55x213.97
         KCanvasContainer {g} at (0,0) size 0x0
+          KCanvasContainer {defs} at (0,0) size 0x0
           RenderSVGText {text} at (0,0) size 465x18
             RenderText {#text} at (0,0) size 349x17
               text run at (0,0) width 349: "Pie chart built from data in a different namespace."
index 7538e0169c4f709945e355a258ae825214124fe4..901cc6ff9a3f52a1278456d33629e5ffacd0d9e4 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (2.25,2.25) size 475.50x355.50
       KCanvasContainer {g} at (90,15) size 360x294
         RenderImage {image} at (0,0) size 100x98
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasItem {rect} at (90,30) size 360x30 [opacity=0.50] [fill={[type=SOLID] [color=#0000FF]}] [filter=#BlendNormal] [data="M30.00,10.00L150.00,10.00L150.00,20.00L30.00,20.00"]
         KCanvasItem {rect} at (90,69) size 360x30 [opacity=0.50] [fill={[type=SOLID] [color=#0000FF]}] [filter=#BlendMultiply] [data="M30.00,23.00L150.00,23.00L150.00,33.00L30.00,33.00"]
         KCanvasContainer {g} at (90,108) size 360x69 [filter=#BlendMultiply]
index 1f338e0be025b708f01acdf4a0c9a95baec423b2..d46ff0c57eb13aa334fc4890f8cf83cab42362bb 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 799x499
       KCanvasContainer {g} at (0.50,0.50) size 799x499
         KCanvasContainer {svg} at (18.29,0.29) size 463.42x289.42
+          KCanvasContainer {defs} at (18,0) size 0x0
           KCanvasContainer {g} at (18.29,0.29) size 463.42x289.42
             KCanvasItem {rect} at (18.29,0.29) size 463.42x289.42 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L799.00,1.00L799.00,499.00L1.00,499.00"]
             KCanvasItem {rect} at (29.60,11.60) size 440.80x23.20 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#DD00DD), (0.33,#22CC22), (0.67,#400000), (1.00,#A0A0FF)]] [bounding box mode=0] [start=(20,0)] [end=(760,0)]}] [data="M20.00,20.00L780.00,20.00L780.00,60.00L20.00,60.00"]
index cbf61e3a942bf4c13794dd7926b30a03eba3ab6b..8b544734253ac067c173a47bcfbdba43e3bd1610 100644 (file)
@@ -12,8 +12,13 @@ KCanvasResource {id="arithmetic" [type=FILTER]  [bounding box=at (0,0) size 1x1]
 KCanvasResource {id="arithmetic50" [type=FILTER]  [bounding box=at (0,0) size 1x1] [effect bounding box mode=0] [effects=[[type=IMAGE]  [result="blue"] [subregion="at (0,0) size 480x360"], [type=IMAGE]  [result="red"] [subregion="at (0,0) size 480x360"], [type=COMPOSITE] [in="red"] [subregion="at (0,0) size 480x360"] [in2="blue"] [k1=0.50 k2=0.50 k3=0.50 k4=0.50]]]}
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
-    KCanvasContainer {svg} at (0.50,0.50) size 479x359
-      KCanvasContainer {g} at (20.20,10.20) size 439.60x289.60 [transform={m=((1.00,0.00)(0.00,1.00)) t=(15.00,-60.00)}]
+    KCanvasContainer {svg} at (0.50,-60) size 479x419.50
+      KCanvasContainer {g} at (15,-60) size 444.80x359.80 [transform={m=((1.00,0.00)(0.00,1.00)) t=(15.00,-60.00)}]
+        KCanvasContainer {defs} at (15,-60) size 150x150
+          KCanvasItem {path} at (15,-60) size 150x150 [fill={[type=SOLID] [color=#00FFFF]}] [data="M0.00,0.00L150.00,0.00L150.00,150.00"]
+          KCanvasItem {path} at (15,-60) size 150x150 [fill={[type=SOLID] [color=#FF00FF]}] [data="M0.00,0.00L0.00,150.00L150.00,0.00"]
+          KCanvasItem {path} at (15,-60) size 150x150 [fill={[type=SOLID] [color=#00FFFF] [opacity=0.50]}] [data="M0.00,0.00L150.00,0.00L150.00,150.00"]
+          KCanvasItem {path} at (15,-60) size 150x150 [fill={[type=SOLID] [color=#FF00FF] [opacity=0.50]}] [data="M0.00,0.00L0.00,150.00L150.00,0.00"]
         KCanvasContainer {g} at (20.20,10.20) size 439.60x289.60 [transform={m=((0.40,0.00)(0.00,0.40)) t=(5.00,70.00)}]
           KCanvasItem {rect} at (20.20,10.20) size 439.60x289.60 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L1099.00,1.00L1099.00,724.00L1.00,724.00"]
           RenderSVGText {text} at (0,0) size 465x146
index d581c1b97bff778bb103159d146e9f3819000662..bac1d437cbd7a5ecd5291feb4a9370adef72d9e7 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 629x419
       KCanvasContainer {g} at (0.50,0.50) size 629x419
         KCanvasContainer {svg} at (0.36,0.36) size 449.29x299.29
+          KCanvasContainer {defs} at (0,0) size 0x0
           KCanvasItem {rect} at (0.36,0.36) size 449.29x299.29 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L629.00,1.00L629.00,419.00L1.00,419.00"]
           KCanvasContainer {g} at (0.36,0.36) size 449.29x299.29
             KCanvasItem {rect} at (0.36,0.36) size 449.29x299.29 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L629.00,1.00L629.00,419.00L1.00,419.00"]
index f77703934f84a09d7206c53d4807d76bab7c7107..6af50c83848b35cf033e6f1ad1baa6c915b91295 100644 (file)
@@ -9,6 +9,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (30,70) size 350x156
         KCanvasContainer {g} at (30,70) size 350x156 [transform={m=((1.00,0.00)(0.00,1.00)) t=(20.00,40.00)}]
+          KCanvasContainer {defs} at (20,40) size 0x0
           KCanvasContainer {g} at (30,70) size 350x156
             RenderSVGText {text} at (0,0) size 465x18
               RenderText {#text} at (0,0) size 66x18
index e42522811f75b8ea46337763262ad195510e4d17..aefef6a0fedd7443ac64a5fffa26665a3bad847e 100644 (file)
@@ -14,6 +14,7 @@ layer at (0,0) size 480x360
         RenderSVGText {text} at (0,0) size 465x14
           RenderText {#text} at (0,0) size 140x14
             text run at (0,0) width 140: "Filters: feDiffuseLighting"
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (90,80) size 190x30 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,50.00)}]
           RenderSVGText {text} at (0,0) size 465x18
             RenderText {#text} at (0,0) size 291x18
index 4d90a8d6828b6946d8da47a8ed4aafa930d8ea19..6f53da983e464dab8dcf441d915a50b8fa90cebf 100644 (file)
@@ -7,6 +7,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (15,15) size 414x313
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (15,15) size 414x313
           KCanvasItem {rect} at (15,15) size 128x128 [fill={[type=SOLID] [color=#000000]}] [filter=#DispMapChecker] [data="M15.00,15.00L143.00,15.00L143.00,143.00L15.00,143.00"]
           KCanvasItem {rect} at (20,115) size 118x20 [fill={[type=SOLID] [color=#DDDDDD]}] [data="M20.00,115.00L138.00,115.00L138.00,135.00L20.00,135.00"]
index 3e362faedbf5fc1afc9bd8aa8edaf6b5a939c355..d7f5ca6ad3358b97b85b9bd13eb64f3c6e79b861 100644 (file)
@@ -4,6 +4,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (-6.67,0.50) size 486.17x359
       KCanvasContainer {g} at (-6.67,0.50) size 213.33x119
         KCanvasContainer {svg} at (-10,0.75) size 320x178.50
+          KCanvasContainer {defs} at (0,0) size 0x0
           KCanvasItem {rect} at (0.75,0.75) size 298.50x178.50 [stroke={[type=SOLID] [color=#0000FF]}] [fill={[type=SOLID] [color=#888888]}] [data="M1.00,1.00L199.00,1.00L199.00,119.00L1.00,119.00"]
           KCanvasContainer {g} at (-10,37.50) size 320x105 [filter=#MyFilter]
             KCanvasContainer {g} at (-10,37.50) size 320x105
index 4749c4bd1a721f92b0dcaba7c3eb23de1f717ada..c20f3d44117df297563064bd0a3b416d7e87383c 100644 (file)
@@ -2,8 +2,15 @@ KCanvasResource {id="blur" [type=FILTER]  [bounding box=at (-0.10,-0.10) size 1.
 KCanvasResource {id="blurxy" [type=FILTER]  [bounding box=at (-0.10,-0.10) size 1.20x1.20] [effect bounding box mode=0] [effects=[[type=GAUSSIAN-BLUR]  [subregion="at (0,0) size 480x360"] [std dev. x=20.00 y=1.00]]]}
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
-    KCanvasContainer {svg} at (0,0) size 479.50x359.50
-      KCanvasContainer {g} at (0,0) size 458.75x348.75
+    KCanvasContainer {svg} at (-13.75,-13.75) size 493.25x373.25
+      KCanvasContainer {g} at (-13.75,-13.75) size 472.50x362.50
+        KCanvasContainer {defs} at (-13.75,-13.75) size 162.50x162.50
+          KCanvasContainer {g} at (0,0) size 135x135
+            KCanvasItem {rect} at (0,0) size 90x90 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L90.00,0.00L90.00,90.00L0.00,90.00"]
+            KCanvasItem {rect} at (45,45) size 90x90 [fill={[type=SOLID] [color=#FFFF00]}] [data="M45.00,45.00L135.00,45.00L135.00,135.00L45.00,135.00"]
+          KCanvasContainer {g} at (-13.75,-13.75) size 162.50x162.50
+            KCanvasItem {rect} at (-0.25,-0.25) size 135.50x135.50 [stroke={[type=SOLID] [color=#0000FF] [stroke width=0.50]}] [data="M0.00,0.00L135.00,0.00L135.00,135.00L0.00,135.00"]
+            KCanvasItem {rect} at (-13.75,-13.75) size 162.50x162.50 [stroke={[type=SOLID] [color=#0000FF] [stroke width=0.50]}] [data="M-13.50,-13.50L148.50,-13.50L148.50,148.50L-13.50,148.50"]
         KCanvasContainer {use} at (0,0) size 135x135
           KCanvasContainer {g} at (0,0) size 135x135
             KCanvasContainer {g} at (0,0) size 135x135
index ed6ff07a2360600f16f12596c4f47d8fd3a7e4db..50f8e0c1f73aadbd9ebc76d304eb8879f1412b49 100644 (file)
@@ -3,6 +3,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0,0) size 480x360
       KCanvasContainer {g} at (0,0) size 480x360
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x14
           RenderText {#text} at (0,0) size 185x14
             text run at (0,0) width 185: "Basic test of feImage filter support."
index 15942ea567b99904915186bca695e2480448473f..faf9b2e56536aa0868935c79fc7168d52645712d 100644 (file)
@@ -17,6 +17,7 @@ layer at (0,0) size 480x360
         RenderSVGText {text} at (0,0) size 465x14
           RenderText {#text} at (0,0) size 253x14
             text run at (0,0) width 253: "Filters: feDistantLight, fePointLight, feSpotLight"
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (70,70) size 335x30 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,40.00)}]
           RenderSVGText {text} at (0,0) size 465x18
             RenderText {#text} at (0,0) size 353x18
index 10ea81b14e7cbdb01249315097c5038829bd62ff..a3408f877f1450f914223b2bf4cbd3ba94065ba0 100644 (file)
@@ -4,12 +4,20 @@ KCanvasResource {id="dilate1" [type=FILTER]  [bounding box=at (0,0) size 1x1] [e
 KCanvasResource {id="dilate2" [type=FILTER]  [bounding box=at (0,0) size 1x1] [effect bounding box mode=0]}
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
-    KCanvasContainer {svg} at (0.50,0.50) size 479x359
-      KCanvasContainer {g} at (35.00,19.00) size 403.93x263.29
+    KCanvasContainer {svg} at (-0.00,-6.00) size 479.50x365.50
+      KCanvasContainer {g} at (-0.00,-6.00) size 438.93x288.29
         RenderSVGText {text} at (0,0) size 465x18
           RenderText {#text} at (0,0) size 174x18
             text run at (0,0) width 174: "Filter Effect: feMorphology"
-        KCanvasContainer {g} at (35.00,19.00) size 403.93x263.29 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,-6.00)}]
+        KCanvasContainer {g} at (-0.00,-6.00) size 438.93x288.29 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,-6.00)}]
+          KCanvasContainer {defs} at (-0.00,-6.00) size 148.93x123.29
+            KCanvasContainer {g} at (-0.00,-6.00) size 148.93x123.29
+              KCanvasContainer {g} at (-0.00,-6.00) size 148.93x123.29
+                KCanvasContainer {g} at (-0.00,-6.00) size 148.93x123.29
+                  KCanvasItem {path} at (-0.00,3.95) size 84.99x71.92 [stroke={[type=SOLID] [color=#6666FF] [stroke width=7.17]}] [fill={[type=SOLID] [color=#FFFFFF]}] [data="M81.40,78.29L3.59,78.29L3.59,13.54L81.40,13.54L81.40,78.29"]
+                  KCanvasItem {path} at (6.67,25.79) size 90.18x91.50 [stroke={[type=SOLID] [color=#00FF00] [stroke width=7.17]}] [data="M93.26,77.54C93.26,100.82,74.68,119.70,51.76,119.70C28.84,119.70,10.26,100.82,10.26,77.54C10.26,54.25,28.84,35.37,51.76,35.37C74.68,35.37,93.26,54.25,93.26,77.54"]
+                  KCanvasItem {path} at (47.69,14.24) size 101.25x97.90 [stroke={[type=SOLID] [color=#FF0000] [stroke width=7.17]}] [data="M98.31,28.44L111.60,55.80L141.31,60.18L119.81,81.48L124.89,111.54L98.31,97.35L71.73,111.54L76.81,81.48L55.31,60.18L85.02,55.80L98.31,28.44"]
+                  KCanvasItem {path} at (36.36,-6.00) size 98.79x81.63 [stroke={[type=SOLID] [color=#FFFF00] [stroke width=7.17]}] [data="M131.56,26.34C131.56,54.90,108.77,78.05,80.66,78.05C58.17,78.05,39.94,59.53,39.94,36.68C39.94,18.40,54.53,3.59,72.52,3.59C86.91,3.59,98.58,15.44,98.58,30.06C98.58,41.76,89.25,51.24,77.73,51.24C68.52,51.24,61.05,43.65,61.05,34.30C61.05,26.81,67.03,20.74,74.39,20.74C80.29,20.74,85.07,25.60,85.07,31.59C85.07,36.38,81.25,40.26,76.53,40.26C72.75,40.26,69.70,37.15,69.70,33.32"]
           KCanvasContainer {g} at (35.00,19.00) size 403.93x263.29
             KCanvasContainer {g} at (35.00,19.00) size 148.93x123.29
               KCanvasContainer {use} at (35.00,19.00) size 148.93x123.29 [filter=#erode1]
index 8f7d13645c0085c4ef384488e00f67ca249624dc..8384e314de02da4c1b4770f4e8f4cb88ec3a81cc 100644 (file)
@@ -3,6 +3,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (109,10) size 142x181
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasItem {circle} at (120,10) size 80x80 [fill={[type=SOLID] [color=#000000]}] [filter=#FOMTest] [data="M200.00,50.00L199.92,52.51L199.68,55.01L199.29,57.50L198.74,59.95L198.04,62.36L197.19,64.72L196.19,67.03L195.05,69.27L193.77,71.43L192.36,73.51L190.82,75.50L189.16,77.38L187.38,79.16L185.50,80.82L183.51,82.36L181.43,83.77L179.27,85.05L177.03,86.19L174.72,87.19L172.36,88.04L169.95,88.74L167.50,89.29L165.01,89.68L162.51,89.92L160.00,90.00L157.49,89.92L154.99,89.68L152.50,89.29L150.05,88.74L147.64,88.04L145.28,87.19L142.97,86.19L140.73,85.05L138.57,83.77L136.49,82.36L134.50,80.82L132.62,79.16L130.84,77.38L129.18,75.50L127.64,73.51L126.23,71.43L124.95,69.27L123.81,67.03L122.81,64.72L121.96,62.36L121.26,59.95L120.71,57.50L120.32,55.01L120.08,52.51L120.00,50.00L120.08,47.49L120.32,44.99L120.71,42.50L121.26,40.05L121.96,37.64L122.81,35.28L123.81,32.97L124.95,30.73L126.23,28.57L127.64,26.49L129.18,24.50L130.84,22.62L132.62,20.84L134.50,19.18L136.49,17.64L138.57,16.23L140.73,14.95L142.97,13.81L145.28,12.81L147.64,11.96L150.05,11.26L152.50,10.71L154.99,10.32L157.49,10.08L160.00,10.00L162.51,10.08L165.01,10.32L167.50,10.71L169.95,11.26L172.36,11.96L174.72,12.81L177.03,13.81L179.27,14.95L181.43,16.23L183.51,17.64L185.50,19.18L187.38,20.84L189.16,22.62L190.82,24.50L192.36,26.49L193.77,28.57L195.05,30.73L196.19,32.97L197.19,35.28L198.04,37.64L198.74,40.05L199.29,42.50L199.68,44.99L199.92,47.49"]
         KCanvasItem {path} at (109,79) size 22x22 [transform={m=((1.00,0.00)(0.00,1.00)) t=(120.00,90.00)}] [fill={[type=SOLID] [color=#000000]}] [data="M-1.00,-11.00L1.00,-11.00L1.00,-1.00L11.00,-1.00L11.00,1.00L1.00,1.00L1.00,11.00L-1.00,11.00L-1.00,1.00L-11.00,1.00L-11.00,-1.00L-1.00,-1.00L-1.00,-11.00"]
         KCanvasItem {path} at (149,109) size 22x22 [transform={m=((1.00,0.00)(0.00,1.00)) t=(160.00,120.00)}] [fill={[type=SOLID] [color=#408000] [opacity=0.80]}] [data="M-1.00,-11.00L1.00,-11.00L1.00,-1.00L11.00,-1.00L11.00,1.00L1.00,1.00L1.00,11.00L-1.00,11.00L-1.00,1.00L-11.00,1.00L-11.00,-1.00L-1.00,-1.00L-1.00,-11.00"]
index 523fa96da27f864f1eb7005378ea67cb59ea5799..9a5ea3b126147a76590c1e67cfab505d3cdf8bfb 100644 (file)
@@ -17,6 +17,7 @@ layer at (0,0) size 480x360
         RenderSVGText {text} at (0,0) size 465x14
           RenderText {#text} at (0,0) size 142x14
             text run at (0,0) width 142: "Filters: feSpecularLighting"
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (90,50) size 280x30 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,20.00)}]
           RenderSVGText {text} at (0,0) size 465x18
             RenderText {#text} at (0,0) size 291x18
index 25c3f522a7c8e8e6b6595af22058b18cb56161cd..d9272b5c836c37253a55bd3cc7acdae19eef0238 100644 (file)
@@ -6,6 +6,7 @@ layer at (0,0) size 480x360
         RenderSVGText {text} at (0,0) size 465x17
           RenderText {#text} at (0,0) size 189x17
             text run at (0,0) width 189: "feTile filter test: a tiled pattern"
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (0,0) size 0x0 [filter=#feTileFilter]
         KCanvasItem {rect} at (114,39) size 252x252 [stroke={[type=SOLID] [color=#0000FF] [stroke width=2.00]}] [data="M115.00,40.00L365.00,40.00L365.00,290.00L115.00,290.00"]
         KCanvasItem {rect} at (214.50,114.50) size 51x26 [stroke={[type=SOLID] [color=#000000]}] [fill={[type=SOLID] [color=#0000FF] [opacity=0.50]}] [data="M215.00,115.00L265.00,115.00L265.00,140.00L215.00,140.00"]
index a044e506e63d036faca1f764dba0123f7a68a739..e67bd875574a6c11408de429dc7c352b5f6fe097 100644 (file)
@@ -9,6 +9,7 @@ layer at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (25,25) size 400x230
         KCanvasContainer {g} at (25,25) size 400x230
+          KCanvasContainer {defs} at (0,0) size 0x0
           KCanvasItem {rect} at (25,25) size 100x75 [fill={[type=SOLID] [color=#000000]}] [filter=#Turb1] [data="M25.00,25.00L125.00,25.00L125.00,100.00L25.00,100.00"]
           RenderSVGText {text} at (0,0) size 465x12
             RenderText {#text} at (0,0) size 82x12
index 301f5838ad0246a6b4cd2ca07ea1349d21abf65b..efbba28c00d47c191b3183ab298cdb16fa86c731 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (164.27,81.41) size 211.17x161.13
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x40
           RenderText {#text} at (0,0) size 346x40
             text run at (0,0) width 346: "Basic SVG font element"
index c6c585ae34c6114054d69dd13fd43b8616f2eadc..bb4ecf1805a75f1d68cc438e4d1af776365e7993 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (165,80) size 220x165
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x40
           RenderText {#text} at (0,0) size 395x40
             text run at (0,0) width 395: "SVG font element accuracy"
index 6860ae730a9353d8afa2ecf922e36589fdfa1f28..69fbe07f1cce06dd559b1401ca92b806d3c663dd 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (164.27,81.41) size 211.17x161.13
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x36
           RenderText {#text} at (0,0) size 400x36
             text run at (0,0) width 400: "External SVG font element (xml)"
index dd69a40d5874cbc0247923eab2fdf5fe7d00f95d..02cceb1eab31f9f6de2525b413488c15e248b7cc 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (164.27,81.41) size 211.17x161.13
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x36
           RenderText {#text} at (0,0) size 391x36
             text run at (0,0) width 391: "External SVG font element (css)"
index 96c0a2c87a1d5ebd6f419099084f5837ab09d2e3..4c1f1b71dfa1b70e104a916d20b310402840d90e 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (115.29,35.26) size 294.71x299.74
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x31
           RenderText {#text} at (0,0) size 126x31
             text run at (0,0) width 126: "Text Cursor"
index 3cd096e5246b1db76f20adedb07ed89cceedea5b..d3df7d23d5b34c54e1007c0d3721ae343b04cbf4 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (77.50,45) size 330x213
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x45
           RenderText {#text} at (0,0) size 408x44
             text run at (0,0) width 408: "'onload' event attribute."
index bf1e602b06e2eca8e881de4232e4abc710c02612..9fc74b9bcdaa1f192816053b51365baaa73cb6c7 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (9.50,59.50) size 461x241
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x45
           RenderText {#text} at (0,0) size 320x44
             text run at (0,0) width 320: "Event bubbling - a"
index 6281d189cc0f8459106f1b7ee7b3b42285a51274..fed48f2cb2846e3acd9877b09e5a6ef17ff387d4 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (9.50,59.50) size 461x241
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x45
           RenderText {#text} at (0,0) size 320x44
             text run at (0,0) width 320: "Event bubbling - b"
index 07d4d967267a7a59e303119072a42c5b140ae1a6..f9e9686ee38781d9ba347167fb3713a7fc0f4960 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (9.50,54.50) size 461x231
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x45
           RenderText {#text} at (0,0) size 318x44
             text run at (0,0) width 318: "Event bubbling - c"
index 17feeade6da9afb4b19d3588d623cc0fce2ea78d..fae559dfc7aaf1dddba58e66aae290a939d327a4 100644 (file)
@@ -6,11 +6,13 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (10,30) size 250x270
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x16
           RenderText {#text} at (0,0) size 139x16
             text run at (0,0) width 139: "Test for mask support"
         KCanvasItem {rect} at (10,30) size 100x260 [fill={[type=SOLID] [color=#FF0000]}] [data="M10.00,30.00L110.00,30.00L110.00,290.00L10.00,290.00"]
         KCanvasContainer {mask} at (60,50) size 100x60
+          KCanvasContainer {defs} at (0,0) size 0x0
           KCanvasItem {rect} at (60,50) size 100x60 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FFFFFF), (1.00,#FFFFFF7F)]] [bounding box mode=0] [start=(60,50)] [end=(60,120)]}] [data="M60.00,50.00L160.00,50.00L160.00,110.00L60.00,110.00"]
         KCanvasItem {rect} at (60,50) size 100x60 [fill={[type=SOLID] [color=#00FF00]}] [data="M60.00,50.00L160.00,50.00L160.00,110.00L60.00,110.00"]
         RenderSVGText {text} at (0,0) size 465x14
index 08f1026f7c765450127510ffb9d3de963359ca34..b9a3f45ed8f18d1022083e55955dc01ad147f3c3 100644 (file)
@@ -4,6 +4,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (17.50,17.50) size 445x265
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasItem {rect} at (17.50,17.50) size 445x65 [stroke={[type=SOLID] [color=#000000] [stroke width=5.00]}] [fill={[type=SOLID] [color=#FF0000]}] [clip path="#clip1"] [data="M20.00,20.00L460.00,20.00L460.00,80.00L20.00,80.00"]
         RenderSVGText {text} at (0,0) size 465x34
           RenderText {#text} at (0,0) size 325x33
index 7294635cbef07759ac49726689d8af483e826b06..744c177bff0f4ffcaf9bca14bef4431dab725902 100644 (file)
@@ -3,6 +3,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (20,20) size 420x310
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (30,20) size 410x140
           RenderImage {image} at (0,0) size 410x140
           RenderSVGText {text} at (0,0) size 465x122
index 4e7dd562b8d81327dcdcfa75b68f82e76e502504..ebe4f1b51ae4850393afdf7285cb5e71c3a67b3e 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (-4,-4) size 483.50x363.50
       KCanvasContainer {g} at (-4,-4) size 455.20x255.20
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x16
           RenderText {#text} at (0,0) size 184x16
             text run at (0,0) width 184: "Marker Rendering Properties"
index a082d346031688050cfc01ddb7751e0decc00ef0..80445825f0bf4bdcdc1b2b9681026d478b7a1167 100644 (file)
@@ -5,6 +5,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (36.50,66.50) size 307.00x214.00
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x27
           RenderText {#text} at (0,0) size 454x27
             text run at (0,0) width 454: "Basic test of color-interpolation property."
index c1dbbd35a1a7053fc676e300ec4ccd8e7fbd1a91..bf37fd755d18d7352e5fe27b5ff5f6a11dc24723 100644 (file)
@@ -2,6 +2,7 @@ KRenderingPaintServer {id="Gradient" [type=LINEAR-GRADIENT] [stops=[(0.00,#0000F
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0,0) size 0x0 [transform={m=((1.00,0.00)(0.00,1.50)) t=(0.00,0.00)}]
         RenderSVGText {text} at (0,0) size 465x78
           RenderText {#text} at (0,0) size 420x78
index 215c27ce9b245df9a32aac6c95e39f50853fee61..e37d78c48a434b734fb5e5b46ad4c73f0ff2130e 100644 (file)
@@ -1,6 +1,7 @@
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x36
           RenderText {#text} at (0,0) size 96x36
index 4da4f840a41eab76f1575ae2a32a1c341caf2ae1..a825bc4c4cc4f3e123c8827d26b753f25ee1c139 100644 (file)
@@ -1,6 +1,7 @@
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0.50,0.50) size 479x359
         RenderSVGText {text} at (0,0) size 465x36
           RenderText {#text} at (0,0) size 135x36
index bb59f4050e8649e2f2e61a36015b2d0b8bc539d9..9853b8d2ba514d4500b90df8ef74234bdef998a6 100644 (file)
@@ -1,6 +1,7 @@
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0.50,0.50) size 479x359
         RenderSVGText {text} at (0,0) size 465x36
           RenderText {#text} at (0,0) size 228x36
index d3b808cd70d555e2e28ce2b01217a3e79362b0fc..cc67d48a96bd4fda3f82849e155c81d60c981dfb 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (35.10,17.10) size 428.40x297.90
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (35.10,17.10) size 428.40x297.90 [transform={m=((1.80,0.00)(0.00,1.80)) t=(0.00,0.00)}]
           KCanvasItem {rect} at (36,18) size 414x279 [fill={[type=SOLID] [color=#C0C0C0]}] [data="M20.00,10.00L250.00,10.00L250.00,165.00L20.00,165.00"]
           KCanvasItem {line} at (58.50,18) size 27x297 [stroke={[type=SOLID] [color=#FFFFFF] [stroke width=15.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M40.00,10.00L40.00,175.00"]
index b3a6246a6e7788df82f667d3aa50a020b7f93759..726713d850bc7efa69d96693cce12908c42bdce8 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (35.10,17.10) size 428.40x297.90
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (35.10,17.10) size 428.40x297.90 [transform={m=((1.80,0.00)(0.00,1.80)) t=(0.00,0.00)}]
           KCanvasItem {rect} at (36,18) size 414x279 [fill={[type=SOLID] [color=#C0C0C0]}] [data="M20.00,10.00L250.00,10.00L250.00,165.00L20.00,165.00"]
           KCanvasItem {line} at (58.50,18) size 27x297 [stroke={[type=SOLID] [color=#FFFFFF] [stroke width=15.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M40.00,10.00L40.00,175.00"]
index b1ecb79f6bbde1f184964236b0a68509ba3d8972..f684b8b8b7a27baedda98d31530920a46e6b56ea 100644 (file)
@@ -1,8 +1,12 @@
 layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
-    KCanvasContainer {svg} at (0.50,0.50) size 479x359
-      KCanvasContainer {g} at (140,80) size 200x200
+    KCanvasContainer {svg} at (0,0) size 480x360
+      KCanvasContainer {g} at (0,0) size 480x360
+        KCanvasContainer {defs} at (0,0) size 480x360
+          KCanvasItem {rect} at (0,0) size 480x360 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00L480.00,0.00L480.00,360.00L0.00,360.00"]
         KCanvasItem {rect} at (140,80) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M140.00,80.00L340.00,80.00L340.00,280.00L140.00,280.00"]
+        KCanvasContainer {defs} at (160,100) size 160x160
+          KCanvasItem {rect} at (160,100) size 160x160 [fill={[type=SOLID] [color=#008000]}] [data="M160.00,100.00L320.00,100.00L320.00,260.00L160.00,260.00"]
       RenderSVGText {text} at (0,0) size 465x46
         RenderText {#text} at (0,0) size 264x46
           text run at (0,0) width 264: "$Revision: 1.1 $"
index 8a36fb4c78285c904c3bde7029d8d1e2734410a9..1efe3d8d9ff5b6219507961abde7ca4c781f8a1c 100644 (file)
@@ -2,6 +2,10 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0,0) size 480x359.50
       KCanvasContainer {g} at (0,0) size 480x300
+        KCanvasContainer {defs} at (0,0) size 240x225
+          RenderImage {image} at (0,0) size 240x150
+          KCanvasContainer {svg} at (0,0) size 240x225
+            KCanvasItem {rect} at (0,0) size 240x225 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L240.00,0.00L240.00,225.00L0.00,225.00"]
         KCanvasContainer {g} at (0,0) size 240x150
           KCanvasContainer {use} at (0,0) size 240x150
             KCanvasContainer {g} at (0,0) size 240x150
index 5a3f1a0a56f153cc30891deed85753c48d58d349..2ff50d482a2d22b63139d9492cca94e8bcb250e1 100644 (file)
@@ -2,6 +2,8 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (130,70) size 260x210
+        KCanvasContainer {defs} at (0,0) size 0x0
+          KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x18
           RenderText {#text} at (0,0) size 245x17
             text run at (0,0) width 245: "Rectangle should be red not green"
index 1c13799d24fc3678511ce4fa9f66f65656f49c0a..92bd18b88d801ee4d26bb73f9817d1b8a67f623b 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (130,70) size 260x210
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x18
           RenderText {#text} at (0,0) size 245x17
             text run at (0,0) width 245: "Rectangle should be red not green"
index 195e4fe2f7063a591663c0a9353cf1f226749fa4..8920c9916ade1a2fb03f46841cc8299f8ca9d7e0 100644 (file)
@@ -2,6 +2,7 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (130,70) size 260x210
+        KCanvasContainer {defs} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 465x18
           RenderText {#text} at (0,0) size 245x17
             text run at (0,0) width 245: "Rectangle should be red not green"
index 7fc3e0430d7ad54f1affd5d5d2feead035b24ba1..2d1f52a558a1d883beae08c6fcc9efe2a86c4cb9 100644 (file)
@@ -5,6 +5,11 @@ layer at (0,0) size 480x360
         RenderSVGText {text} at (0,0) size 465x45
           RenderText {#text} at (0,0) size 346x44
             text run at (0,0) width 346: "Test of 'text-anchor'"
+        KCanvasContainer {defs} at (0,0) size 0x0
+          RenderSVGText {text} at (0,0) size 465x18
+            RenderText {#text} at (0,0) size 75x18
+              text run at (0,0) width 75: "end text tref"
+          KCanvasItem {path} at (-5,260) size 225x0 [fill={[type=SOLID] [color=#000000]}] [data="M-5.00,260.00L220.00,260.00"]
         RenderSVGText {text} at (0,0) size 465x34
           RenderText {#text} at (0,0) size 218x33
             text run at (0,0) width 218: "Tspan, tref, toap"
index 1570ac4622bca7f37dadaf3cecf89b4d56b097ab..6101be09df6cfb6993aebfe4d977011f189420d4 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 480x360
         RenderSVGText {text} at (0,0) size 465x34
           RenderText {#text} at (0,0) size 463x33
             text run at (0,0) width 463: "and many-to-many chars to glyphs"
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasContainer {g} at (0,0) size 0x0
           RenderSVGText {text} at (0,0) size 465x0
           RenderSVGText {text} at (0,0) size 465x69
index 31ca2e450c463e70224abd2d02346422d5304b13..a2b8855b6ea98883610013c970cf969eb2fe3e77 100644 (file)
@@ -2,6 +2,10 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
     KCanvasContainer {svg} at (0.50,0.50) size 479x359
       KCanvasContainer {g} at (16.50,22.02) size 401.80x269.48
+        KCanvasContainer {defs} at (33.03,22.02) size 385.28x212.98
+          KCanvasItem {path} at (198.53,22.02) size 219.77x84.55 [stroke={[type=SOLID] [color=#0000FF]}] [data="M199.00,89.30C206.60,66.60,235.80,13.20,270.00,30.30C286.60,38.60,298.90,59.40,310.00,73.30C321.70,87.90,338.60,99.00,356.00,103.30C387.30,111.10,396.60,90.40,418.00,74.30"]
+          KCanvasItem {path} at (33.03,78.52) size 219.77x84.55 [stroke={[type=SOLID] [color=#0000FF]}] [data="M33.50,145.80C41.00,123.00,70.30,69.70,104.50,86.80C121.00,95.00,133.00,116.00,144.50,129.80C156.20,144.40,173.00,155.50,190.50,159.80C221.80,167.60,231.00,146.90,252.50,130.80"]
+          KCanvasItem {path} at (113,231) size 300x4 [stroke={[type=SOLID] [color=#0000FF] [stroke width=4.00]}] [data="M113.00,233.00L413.00,233.00"]
         KCanvasContainer {g} at (198.53,22.02) size 219.77x84.55
           KCanvasContainer {use} at (198.53,22.02) size 219.77x84.55
             KCanvasContainer {g} at (198.53,22.02) size 219.77x84.55
index 2d1093b94f5b389e429d0b8d8a00c3a3ac8e5bd9..7862b74cf7728e451de7e2a7938ebb316c679fff 100644 (file)
@@ -2,6 +2,7 @@ KCanvasResource {id="MyFilter" [type=FILTER]  [bounding box=at (0,0) size 100x10
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (46.56,-0.94) size 191.76x191.76
+      KCanvasContainer {defs} at (47.50,0) size 0x0
       KCanvasItem {rect} at (48.44,0.94) size 189.88x189.88 [stroke={[type=SOLID] [color=#0000FF]}] [fill={[type=SOLID] [color=#888888]}] [data="M1.00,1.00L101.00,1.00L101.00,101.00L1.00,101.00"]
       KCanvasContainer {g} at (46.56,-0.94) size 189.88x189.88 [filter=#MyFilter]
         KCanvasItem {rect} at (46.56,-0.94) size 189.88x189.88 [stroke={[type=SOLID] [color=#0000FF]}] [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
index 3b9b2c180439e5d341e64af1e74486978e362ee0..7318bd44e7adef026054bd8da18be3181948cd19 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 800x600
     KCanvasContainer {svg} at (0.83,0.83) size 1081.67x698.33
       KCanvasContainer {g} at (0.83,0.83) size 1081.67x698.33
         KCanvasContainer {svg} at (0.58,8.27) size 748.85x483.46
+          KCanvasContainer {defs} at (0,7.69) size 0x0
           KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
           KCanvasContainer {g} at (0.58,8.27) size 748.85x483.46
             KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
index 083db61bf7eec821071ce411dc411b5d76b7d0f3..041588f2f98124f791044638be6fa1f56fd482a5 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 800x600
     KCanvasContainer {svg} at (0.83,0.83) size 1081.67x698.33
       KCanvasContainer {g} at (0.83,0.83) size 1081.67x698.33
         KCanvasContainer {svg} at (0.58,8.27) size 748.85x483.46
+          KCanvasContainer {defs} at (0,7.69) size 0x0
           KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
           KCanvasContainer {g} at (0.58,8.27) size 748.85x483.46
             KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
index 8cb209b48babf2951404fd5b3a2548d7d9bbea9d..c4f15272f962795a7a3e3ea901cb6c6807783df4 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 800x600
     KCanvasContainer {svg} at (0.83,0.83) size 1081.67x698.33
       KCanvasContainer {g} at (0.83,0.83) size 1081.67x698.33
         KCanvasContainer {svg} at (0.58,8.27) size 748.85x483.46
+          KCanvasContainer {defs} at (0,7.69) size 0x0
           KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
           KCanvasContainer {g} at (0.58,8.27) size 748.85x483.46
             KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
index b472ff3cc267b9c180e56bf16a256017b22b3ce1..dba9e3c8a232708c16e71badf1a4a68fdd22dd99 100644 (file)
@@ -8,6 +8,7 @@ layer at (0,0) size 800x600
     KCanvasContainer {svg} at (0.83,0.83) size 1081.67x698.33
       KCanvasContainer {g} at (0.83,0.83) size 1081.67x698.33
         KCanvasContainer {svg} at (0.58,8.27) size 748.85x483.46
+          KCanvasContainer {defs} at (0,7.69) size 0x0
           KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
           KCanvasContainer {g} at (0.58,8.27) size 748.85x483.46
             KCanvasItem {rect} at (0.58,8.27) size 748.85x483.46 [stroke={[type=SOLID] [color=#0000FF]}] [data="M1.00,1.00L649.00,1.00L649.00,419.00L1.00,419.00"]
index 1914bbe26e77d6a728d35e8221c00b18bef3bdb8..6ab2262d647ef92fe53bf88fb9024717f8536c56 100644 (file)
@@ -3,5 +3,6 @@ layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (-0.50,-0.50) size 101x101
       KCanvasContainer {g} at (-0.50,-0.50) size 101x101
+        KCanvasContainer {defs} at (0,0) size 0x0
         KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [filter=#ResultImage] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
         KCanvasItem {rect} at (-0.50,-0.50) size 101x101 [stroke={[type=SOLID] [color=#0000FF]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
index 8a0e0a55655f520f66d1c594b1c25ce10050b17a..f88b8747b70db130a32355bee82998656963d9aa 100644 (file)
@@ -2,5 +2,6 @@ KCanvasResource {id="filter" [type=FILTER]  [bounding box=at (-0.10,-0.10) size
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 100x100
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
       KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [filter=#filter] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
index fd86d6e05fabcd75c50ef7858b1bf9124633696f..e911cf6683d29d62950a6adc4517512914753643 100644 (file)
@@ -5,5 +5,6 @@ KRenderingPaintServer {id="border-grad" [type=LINEAR-GRADIENT] [stops=[(0.00,#00
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (32.00,32.00) size 123.00x123.00
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasItem {circle} at (45.00,45.00) size 110.00x110.00 [stroke={[type=LINEAR-GRADIENT] [stops=[(0.00,#000000), (1.00,#0000004C)]] [start=(5,95)] [end=(95,5)] [stroke width=10.00]}] [fill={[type=RADIAL-GRADIENT] [stops=[(0.00,#D7433C), (1.00,#BD1F1844)]] [center=(50,50)] [focal=(50,50)] [radius=50.00]}] [data="M150.00,100.00L149.90,103.14L149.61,106.27L149.11,109.37L148.43,112.43L147.55,115.45L146.49,118.41L145.24,121.29L143.82,124.09L142.22,126.79L140.45,129.39L138.53,131.87L136.45,134.23L134.23,136.45L131.87,138.53L129.39,140.45L126.79,142.22L124.09,143.82L121.29,145.24L118.41,146.49L115.45,147.55L112.43,148.43L109.37,149.11L106.27,149.61L103.14,149.90L100.00,150.00L96.86,149.90L93.73,149.61L90.63,149.11L87.57,148.43L84.55,147.55L81.59,146.49L78.71,145.24L75.91,143.82L73.21,142.22L70.61,140.45L68.13,138.53L65.77,136.45L63.55,134.23L61.47,131.87L59.55,129.39L57.78,126.79L56.18,124.09L54.76,121.29L53.51,118.41L52.45,115.45L51.57,112.43L50.89,109.37L50.39,106.27L50.10,103.14L50.00,100.00L50.10,96.86L50.39,93.73L50.89,90.63L51.57,87.57L52.45,84.55L53.51,81.59L54.76,78.71L56.18,75.91L57.78,73.21L59.55,70.61L61.47,68.13L63.55,65.77L65.77,63.55L68.13,61.47L70.61,59.55L73.21,57.78L75.91,56.18L78.71,54.76L81.59,53.51L84.55,52.45L87.57,51.57L90.63,50.89L93.73,50.39L96.86,50.10L100.00,50.00L103.14,50.10L106.27,50.39L109.37,50.89L112.43,51.57L115.45,52.45L118.41,53.51L121.29,54.76L124.09,56.18L126.79,57.78L129.39,59.55L131.87,61.47L134.23,63.55L136.45,65.77L138.53,68.13L140.45,70.61L142.22,73.21L143.82,75.91L145.24,78.71L146.49,81.59L147.55,84.55L148.43,87.57L149.11,90.63L149.61,93.73L149.90,96.86"]
       KCanvasItem {circle} at (32.00,32.00) size 30.00x30.00 [stroke={[type=LINEAR-GRADIENT] [stops=[(0.00,#000000), (1.00,#0000004C)]] [start=(5,95)] [end=(95,5)] [stroke width=10.00]}] [fill={[type=RADIAL-GRADIENT] [stops=[(0.00,#D7433C), (1.00,#BD1F1844)]] [center=(50,50)] [focal=(50,50)] [radius=50.00]}] [data="M57.00,47.00L56.98,47.63L56.92,48.25L56.82,48.87L56.69,49.49L56.51,50.09L56.30,50.68L56.05,51.26L55.76,51.82L55.44,52.36L55.09,52.88L54.71,53.37L54.29,53.85L53.85,54.29L53.37,54.71L52.88,55.09L52.36,55.44L51.82,55.76L51.26,56.05L50.68,56.30L50.09,56.51L49.49,56.69L48.87,56.82L48.25,56.92L47.63,56.98L47.00,57.00L46.37,56.98L45.75,56.92L45.13,56.82L44.51,56.69L43.91,56.51L43.32,56.30L42.74,56.05L42.18,55.76L41.64,55.44L41.12,55.09L40.63,54.71L40.15,54.29L39.71,53.85L39.29,53.37L38.91,52.88L38.56,52.36L38.24,51.82L37.95,51.26L37.70,50.68L37.49,50.09L37.31,49.49L37.18,48.87L37.08,48.25L37.02,47.63L37.00,47.00L37.02,46.37L37.08,45.75L37.18,45.13L37.31,44.51L37.49,43.91L37.70,43.32L37.95,42.74L38.24,42.18L38.56,41.64L38.91,41.12L39.29,40.63L39.71,40.15L40.15,39.71L40.63,39.29L41.12,38.91L41.64,38.56L42.18,38.24L42.74,37.95L43.32,37.70L43.91,37.49L44.51,37.31L45.13,37.18L45.75,37.08L46.37,37.02L47.00,37.00L47.63,37.02L48.25,37.08L48.87,37.18L49.49,37.31L50.09,37.49L50.68,37.70L51.26,37.95L51.82,38.24L52.36,38.56L52.88,38.91L53.37,39.29L53.85,39.71L54.29,40.15L54.71,40.63L55.09,41.12L55.44,41.64L55.76,42.18L56.05,42.74L56.30,43.32L56.51,43.91L56.69,44.51L56.82,45.13L56.92,45.75L56.98,46.37"]
index 1e52994858a95357ff90ebc6118c2ea4690ac926..809a4f8d548273a7a794fdd1210d23a3447e1507 100644 (file)
@@ -3,6 +3,7 @@ KCanvasResource {id="Mask" [type=MASKER]}
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0.33,0) size 301.33x113
+      KCanvasContainer {defs} at (0.33,0) size 0x0
       KCanvasContainer {mask} at (0.33,0) size 301.33x113
         KCanvasItem {rect} at (0.33,0) size 301.33x113 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FFFFFF), (1.00,#000000)]] [bounding box mode=0] [start=(0,0)] [end=(800,0)]}] [data="M0.00,0.00L800.00,0.00L800.00,300.00L0.00,300.00"]
       KCanvasItem {rect} at (0.33,0) size 301.33x113 [fill={[type=SOLID] [color=#FF8080]}] [data="M0.00,0.00L800.00,0.00L800.00,300.00L0.00,300.00"]
index f10acba9a3759b4ece17189a81c83392c3e518cf..bf54ff79897d8a17fd2fd2ba5431f7f607c74b19 100644 (file)
@@ -3,6 +3,7 @@ KCanvasResource {id="myfilter" [type=FILTER]  [bounding box=at (-0.10,-0.10) siz
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 503x410
+      KCanvasContainer {defs} at (0,0) size 0x0
       RenderImage {image} at (0,0) size 503x410
       RenderSVGText {text} at (0,0) size 785x18
         RenderText {#text} at (0,0) size 542x18
index 739a6681d94360d1c993fb724ed3a8d9c04157df..320692ce08a1a923d2e98e4e144a3230be36285b 100644 (file)
@@ -5,6 +5,7 @@ KCanvasResource {id="marker1" [type=MARKER] [angle=0.00] [ref x=5.00 y=5.00]}
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 334.17x150.83
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {marker} at (0,0) size 16.67x16.67
         KCanvasItem {rect} at (0,0) size 16.67x16.67 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L10.00,0.00L10.00,10.00L0.00,10.00"]
       RenderSVGText {text} at (0,0) size 785x18
index 7095e094d54bb3e5926a319de9bb23e2eeb6131d..47a8d0f73103a1146f8cb2a784673d3be56eef30 100644 (file)
@@ -2,6 +2,7 @@ KCanvasResource {id="gblur" [type=FILTER]  [bounding box=at (-0.10,-0.10) size 1
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 87x40
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0,0) size 87x40 [opacity=0.50]
         KCanvasItem {rect} at (0,0) size 87x40 [fill={[type=SOLID] [color=#008000]}] [filter=#gblur] [data="M0.00,0.00L87.00,0.00L87.00,40.00L0.00,40.00"]
       RenderSVGText {text} at (0,0) size 785x18
diff --git a/LayoutTests/svg/custom/pattern-in-defs-expected.checksum b/LayoutTests/svg/custom/pattern-in-defs-expected.checksum
new file mode 100644 (file)
index 0000000..3a4f1f7
--- /dev/null
@@ -0,0 +1 @@
+16310588467cfc20d551635abc59b784
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/pattern-in-defs-expected.png b/LayoutTests/svg/custom/pattern-in-defs-expected.png
new file mode 100644 (file)
index 0000000..3db2634
Binary files /dev/null and b/LayoutTests/svg/custom/pattern-in-defs-expected.png differ
diff --git a/LayoutTests/svg/custom/pattern-in-defs-expected.txt b/LayoutTests/svg/custom/pattern-in-defs-expected.txt
new file mode 100644 (file)
index 0000000..8b63935
--- /dev/null
@@ -0,0 +1,9 @@
+KRenderingPaintServer {id="green" [type=PATTERN] [bbox=at (0,0) size 0x0]}
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+    KCanvasContainer {svg} at (0,0) size 100x100
+      KCanvasContainer {defs} at (0,0) size 100x100
+        KCanvasContainer {pattern} at (0,0) size 100x100
+          KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=PATTERN] [bbox=at (0,0) size 0x0]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
diff --git a/LayoutTests/svg/custom/pattern-in-defs.svg b/LayoutTests/svg/custom/pattern-in-defs.svg
new file mode 100644 (file)
index 0000000..02eddea
--- /dev/null
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
+  <defs>
+    <pattern id="green" x="0" y="0" width="100" height="100">
+      <rect x="0" y="0" width="100" height="100" fill="green"/>
+    </pattern>
+  </defs>
+  <rect x="0" y="0" width="100" height="100" fill="red" />
+  <rect x="0" y="0" width="100" height="100" fill="url(#green)" />
+</svg>
index 5a06f3a48ed9ec482f347ea38420ed5ae02c1e11..f085912fdb80c86468cb5cf98bec04cdeb75e3a3 100644 (file)
@@ -2,6 +2,7 @@ KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 0x0
+      KCanvasContainer {defs} at (0,0) size 0x0
       KCanvasContainer {g} at (0,0) size 0x0
         RenderSVGText {text} at (0,0) size 785x63
           RenderText {#text} at (0,0) size 133x63
index dfc8574027ff1507e1cd77f8856d891bb469746c..12ad72ee319f39667d03c028e0d2a219b8298b84 100644 (file)
@@ -2,6 +2,7 @@ KCanvasResource {id="myfilter" [type=FILTER]  [bounding box=at (-0.10,-0.10) siz
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 0x0
+      KCanvasContainer {defs} at (0,0) size 0x0
       RenderSVGText {text} at (0,0) size 785x63
         RenderText {#text} at (0,0) size 567x63
           text run at (0,0) width 567: "This text should be blury."
index d8f56b6f5a5fabc5f39e8c0a596d2dd463ee4dac..da72e77bdb2a5d709f0160f5036622836af80c3b 100644 (file)
@@ -1,6 +1,13 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
     KCanvasContainer {svg} at (0,0) size 0x0
+      KCanvasContainer {defs} at (0,0) size 0x0
+        RenderSVGText {text} at (0,0) size 785x18
+          RenderText {#text} at (0,0) size 44x18
+            text run at (0,0) width 44: "Failure"
+        RenderSVGText {text} at (0,0) size 785x18
+          RenderText {#text} at (0,0) size 50x18
+            text run at (0,0) width 50: "Success"
       RenderSVGText {text} at (0,0) size 785x18
         RenderInline {tref} at (0,0) size 50x18
           RenderText {#text} at (0,0) size 50x18
index fb19497206047bce5a4bb100f76bb7bc945e3023..3036f28f844127264f330646d23ce622bd3d58e3 100644 (file)
@@ -1,3 +1,21 @@
+2006-08-14  Eric Seidel  <eric@eseidel.com>
+
+        Reviewed by mjs.
+
+        <mask>, <marker>, <pattern> inside <defs> do not work
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=6548
+
+        * ksvg2/svg/SVGDefsElement.cpp:
+        (WebCore::SVGDefsElement::SVGDefsElement): moved to .cpp file
+        (WebCore::SVGDefsElement::isValid): moved to .cpp file
+        (WebCore::SVGDefsElement::rendererIsNeeded): Added.
+        (WebCore::SVGDefsElement::createRenderer): Added.
+        * ksvg2/svg/SVGDefsElement.h:
+        * ksvg2/svg/SVGGElement.cpp:
+        (WebCore::SVGGElement::SVGGElement): adjusted spacing
+        (WebCore::SVGGElement::parseMappedAttribute): adjusted spacing
+        (WebCore::SVGDummyElement::SVGDummyElement): adjusted spacing
+
 2006-08-14  Eric Seidel  <eric@eseidel.com>
 
         Reviewed by darin and mjs.
index 515ae3077533f444fe6463c5c22d77e7e417db00..95180b0a085d1bce908909e00026d23b852b8022 100644 (file)
 #include "config.h"
 #ifdef SVG_SUPPORT
 #include "SVGDefsElement.h"
+#include "RenderSVGContainer.h"
 
-using namespace WebCore;
+namespace WebCore {
 
-SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document *doc) : SVGStyledTransformableElement(tagName, doc), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired()
+SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document *doc)
+    : SVGStyledTransformableElement(tagName, doc)
+    , SVGTests()
+    , SVGLangSpace()
+    , SVGExternalResourcesRequired()
 {
 }
 
@@ -34,6 +39,25 @@ SVGDefsElement::~SVGDefsElement()
 {
 }
 
+bool SVGDefsElement::isValid() const
+{
+    return SVGTests::isValid();
+}
+
+bool SVGDefsElement::rendererIsNeeded(RenderStyle* style)
+{
+    return StyledElement::rendererIsNeeded(style);
+}
+
+RenderObject* SVGDefsElement::createRenderer(RenderArena* arena, RenderStyle* style)
+{
+    RenderSVGContainer* defsContainer = new (arena) RenderSVGContainer(this);
+    defsContainer->setDrawsContents(false); // defs contents will be explicitly referenced and individually drawn.
+    return defsContainer;
+}
+
+}
+
 // vim:ts=4:noet
 #endif // SVG_SUPPORT
 
index cd425ea14ab1dedf8eab640ab60394fd4117a67f..462d107f05a2e949f007cfa40e01a45ae6d8fcb5 100644 (file)
@@ -20,8 +20,8 @@
     Boston, MA 02111-1307, USA.
 */
 
-#ifndef KSVG_SVGDefsElementImpl_H
-#define KSVG_SVGDefsElementImpl_H
+#ifndef SVGDefsElementImpl_H
+#define SVGDefsElementImpl_H
 #ifdef SVG_SUPPORT
 
 #include "SVGStyledTransformableElement.h"
@@ -40,7 +40,10 @@ namespace WebCore
         SVGDefsElement(const QualifiedName&, Document*);
         virtual ~SVGDefsElement();
         
-        virtual bool isValid() const { return SVGTests::isValid(); }
+        virtual bool isValid() const;
+        
+        virtual bool rendererIsNeeded(RenderStyle*);
+        virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
     };
 
 } // namespace WebCore
index 0df3946d4acd34555a7e07667f117852655a4a99..fe324203af39636a3c0056d073c297771fd4b635 100644 (file)
 #include <kcanvas/RenderSVGContainer.h>
 #include <kcanvas/device/KRenderingDevice.h>
 
-using namespace WebCore;
+namespace WebCore {
 
-SVGGElement::SVGGElement(const QualifiedName& tagName, Document *doc) : SVGStyledTransformableElement(tagName, doc), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired()
+SVGGElement::SVGGElement(const QualifiedName& tagName, Document *doc)
+    : SVGStyledTransformableElement(tagName, doc)
+    , SVGTests()
+    , SVGLangSpace()
+    , SVGExternalResourcesRequired()
 {
 }
 
@@ -40,9 +44,12 @@ SVGGElement::~SVGGElement()
 
 void SVGGElement::parseMappedAttribute(MappedAttribute *attr)
 {
-    if(SVGTests::parseMappedAttribute(attr)) return;
-    if(SVGLangSpace::parseMappedAttribute(attr)) return;
-    if(SVGExternalResourcesRequired::parseMappedAttribute(attr)) return;
+    if (SVGTests::parseMappedAttribute(attr))
+        return;
+    if (SVGLangSpace::parseMappedAttribute(attr))
+        return;
+    if (SVGExternalResourcesRequired::parseMappedAttribute(attr))
+        return;
     SVGStyledTransformableElement::parseMappedAttribute(attr);
 }
 
@@ -52,7 +59,9 @@ RenderObject* SVGGElement::createRenderer(RenderArena* arena, RenderStyle* style
 }
 
 // Helper class for <use> support
-SVGDummyElement::SVGDummyElement(const QualifiedName& tagName, Document *doc) : SVGGElement(tagName, doc),  m_localName("dummy")
+SVGDummyElement::SVGDummyElement(const QualifiedName& tagName, Document *doc)
+    : SVGGElement(tagName, doc)
+    ,  m_localName("dummy")
 {
 }
 
@@ -65,6 +74,8 @@ const AtomicString& SVGDummyElement::localName() const
     return m_localName;
 }
 
+}
+
 // vim:ts=4:noet
 #endif // SVG_SUPPORT