Changeset 55289 in webkit
- Timestamp:
- Feb 26, 2010 10:02:26 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 deleted
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r55287 r55289 1 2010-02-26 Dirk Schulze <krit@webkit.org> 2 3 Reviewed by Nikolas Zimmermann. 4 5 SVGResourceClipper needs to be moved to RenderSVGResourceClipper 6 https://bugs.webkit.org/show_bug.cgi?id=35421 7 8 Update results after the move of SVGResourceClipper. Results are better 9 readable and more sensible now. 10 11 * platform/mac/svg/W3C-SVG-1.1/masking-intro-01-f-expected.txt: 12 * platform/mac/svg/W3C-SVG-1.1/masking-path-01-b-expected.txt: 13 * platform/mac/svg/W3C-SVG-1.1/masking-path-02-b-expected.txt: 14 * platform/mac/svg/W3C-SVG-1.1/masking-path-04-b-expected.txt: 15 * platform/mac/svg/W3C-SVG-1.1/masking-path-05-f-expected.txt: 16 * platform/mac/svg/W3C-SVG-1.1/painting-marker-02-f-expected.txt: 17 * platform/mac/svg/batik/text/textEffect2-expected.txt: 18 * platform/mac/svg/batik/text/textProperties-expected.txt: 19 * platform/mac/svg/css/clippath-with-shadow-expected.txt: 20 * platform/mac/svg/custom/clip-path-child-changes-expected.txt: 21 * platform/mac/svg/custom/clip-path-display-none-child-expected.txt: 22 * platform/mac/svg/custom/clip-path-href-changes-expected.txt: 23 * platform/mac/svg/custom/clip-path-referencing-use-expected.txt: 24 * platform/mac/svg/custom/clip-path-referencing-use2-expected.txt: 25 * platform/mac/svg/custom/clip-path-units-changes-expected.txt: 26 * platform/mac/svg/custom/clip-path-with-transform-expected.txt: 27 * platform/mac/svg/custom/empty-clip-path-expected.txt: 28 * platform/mac/svg/custom/focus-ring-expected.txt: 29 * platform/mac/svg/custom/image-with-transform-clip-filter-expected.txt: 30 * platform/mac/svg/custom/invalid-css-expected.txt: 31 * platform/mac/svg/custom/js-late-clipPath-and-object-creation-expected.txt: 32 * platform/mac/svg/custom/js-late-clipPath-creation-expected.txt: 33 * platform/mac/svg/custom/recursive-clippath-expected.txt: 34 * platform/mac/svg/custom/resource-invalidate-on-target-update-expected.txt: 35 * platform/mac/svg/custom/text-clip-expected.txt: 36 * platform/mac/svg/custom/visibility-override-clip-expected.txt: 37 * platform/mac/svg/filters/filter-clip-expected.txt: 38 * svg/custom/use-clipped-transform-expected.txt: 39 1 40 2010-02-26 Ben Murdoch <benm@google.com> 2 41 -
trunk/LayoutTests/platform/mac/svg/W3C-SVG-1.1/masking-intro-01-f-expected.txt
r54991 r55289 1 KCanvasResource {id="one" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [bounding box mode=1] [path=M0.50,0.50 L0.50,0.51 L0.50,0.53 L0.50,0.54 L0.49,0.55 L0.49,0.56 L0.49,0.57 L0.48,0.59 L0.48,0.60 L0.47,0.61 L0.46,0.62 L0.45,0.63 L0.45,0.64 L0.44,0.65 L0.43,0.65 L0.42,0.66 L0.41,0.67 L0.40,0.68 L0.39,0.68 L0.37,0.69 L0.36,0.69 L0.35,0.69 L0.34,0.70 L0.33,0.70 L0.31,0.70 L0.30,0.70 L0.29,0.70 L0.27,0.70 L0.26,0.70 L0.25,0.69 L0.24,0.69 L0.23,0.69 L0.21,0.68 L0.20,0.68 L0.19,0.67 L0.18,0.66 L0.17,0.65 L0.16,0.65 L0.15,0.64 L0.15,0.63 L0.14,0.62 L0.13,0.61 L0.12,0.60 L0.12,0.59 L0.11,0.57 L0.11,0.56 L0.11,0.55 L0.10,0.54 L0.10,0.53 L0.10,0.51 L0.10,0.50 L0.10,0.49 L0.10,0.47 L0.10,0.46 L0.11,0.45 L0.11,0.44 L0.11,0.43 L0.12,0.41 L0.12,0.40 L0.13,0.39 L0.14,0.38 L0.15,0.37 L0.15,0.36 L0.16,0.35 L0.17,0.35 L0.18,0.34 L0.19,0.33 L0.20,0.32 L0.21,0.32 L0.23,0.31 L0.24,0.31 L0.25,0.31 L0.26,0.30 L0.27,0.30 L0.29,0.30 L0.30,0.30 L0.31,0.30 L0.33,0.30 L0.34,0.30 L0.35,0.31 L0.36,0.31 L0.37,0.31 L0.39,0.32 L0.40,0.32 L0.41,0.33 L0.42,0.34 L0.43,0.35 L0.44,0.35 L0.45,0.36 L0.45,0.37 L0.46,0.38 L0.47,0.39 L0.48,0.40 L0.48,0.41 L0.49,0.43 L0.49,0.44 L0.49,0.45 L0.50,0.46 L0.50,0.47 L0.50,0.49 Z], [winding=NON-ZERO] [bounding box mode=1] [path=M0.90,0.50 L0.90,0.51 L0.90,0.53 L0.90,0.54 L0.89,0.55 L0.89,0.56 L0.89,0.57 L0.88,0.59 L0.88,0.60 L0.87,0.61 L0.86,0.62 L0.85,0.63 L0.85,0.64 L0.84,0.65 L0.83,0.65 L0.82,0.66 L0.81,0.67 L0.80,0.68 L0.79,0.68 L0.77,0.69 L0.76,0.69 L0.75,0.69 L0.74,0.70 L0.73,0.70 L0.71,0.70 L0.70,0.70 L0.69,0.70 L0.67,0.70 L0.66,0.70 L0.65,0.69 L0.64,0.69 L0.63,0.69 L0.61,0.68 L0.60,0.68 L0.59,0.67 L0.58,0.66 L0.57,0.65 L0.56,0.65 L0.55,0.64 L0.55,0.63 L0.54,0.62 L0.53,0.61 L0.52,0.60 L0.52,0.59 L0.51,0.57 L0.51,0.56 L0.51,0.55 L0.50,0.54 L0.50,0.53 L0.50,0.51 L0.50,0.50 L0.50,0.49 L0.50,0.47 L0.50,0.46 L0.51,0.45 L0.51,0.44 L0.51,0.43 L0.52,0.41 L0.52,0.40 L0.53,0.39 L0.54,0.38 L0.55,0.37 L0.55,0.36 L0.56,0.35 L0.57,0.35 L0.58,0.34 L0.59,0.33 L0.60,0.32 L0.61,0.32 L0.63,0.31 L0.64,0.31 L0.65,0.31 L0.66,0.30 L0.67,0.30 L0.69,0.30 L0.70,0.30 L0.71,0.30 L0.73,0.30 L0.74,0.30 L0.75,0.31 L0.76,0.31 L0.77,0.31 L0.79,0.32 L0.80,0.32 L0.81,0.33 L0.82,0.34 L0.83,0.35 L0.84,0.35 L0.85,0.36 L0.85,0.37 L0.86,0.38 L0.87,0.39 L0.88,0.40 L0.88,0.41 L0.89,0.43 L0.89,0.44 L0.89,0.45 L0.90,0.46 L0.90,0.47 L0.90,0.49 Z]]]}2 1 layer at (0,0) size 480x360 3 2 RenderView at (0,0) size 480x360 … … 8 7 chunk 1 (middle anchor) text run 1 at (62.50,35.00) startOffset 0 endOffset 51 width 355.00: "Testing stroke inclusion for 'clip-path' and 'mask'" 9 8 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 10 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x09 RenderSVGResourceClipper {clipPath} [id="one"] [clipPathUnits=objectBoundingBox] 11 10 RenderPath {circle} at (0,0) size 1x1 [stroke={[type=SOLID] [color=#FF0000] [stroke width=0.15]}] [data="M0.50,0.50 L0.50,0.51 L0.50,0.53 L0.50,0.54 L0.49,0.55 L0.49,0.56 L0.49,0.57 L0.48,0.59 L0.48,0.60 L0.47,0.61 L0.46,0.62 L0.45,0.63 L0.45,0.64 L0.44,0.65 L0.43,0.65 L0.42,0.66 L0.41,0.67 L0.40,0.68 L0.39,0.68 L0.37,0.69 L0.36,0.69 L0.35,0.69 L0.34,0.70 L0.33,0.70 L0.31,0.70 L0.30,0.70 L0.29,0.70 L0.27,0.70 L0.26,0.70 L0.25,0.69 L0.24,0.69 L0.23,0.69 L0.21,0.68 L0.20,0.68 L0.19,0.67 L0.18,0.66 L0.17,0.65 L0.16,0.65 L0.15,0.64 L0.15,0.63 L0.14,0.62 L0.13,0.61 L0.12,0.60 L0.12,0.59 L0.11,0.57 L0.11,0.56 L0.11,0.55 L0.10,0.54 L0.10,0.53 L0.10,0.51 L0.10,0.50 L0.10,0.49 L0.10,0.47 L0.10,0.46 L0.11,0.45 L0.11,0.44 L0.11,0.43 L0.12,0.41 L0.12,0.40 L0.13,0.39 L0.14,0.38 L0.15,0.37 L0.15,0.36 L0.16,0.35 L0.17,0.35 L0.18,0.34 L0.19,0.33 L0.20,0.32 L0.21,0.32 L0.23,0.31 L0.24,0.31 L0.25,0.31 L0.26,0.30 L0.27,0.30 L0.29,0.30 L0.30,0.30 L0.31,0.30 L0.33,0.30 L0.34,0.30 L0.35,0.31 L0.36,0.31 L0.37,0.31 L0.39,0.32 L0.40,0.32 L0.41,0.33 L0.42,0.34 L0.43,0.35 L0.44,0.35 L0.45,0.36 L0.45,0.37 L0.46,0.38 L0.47,0.39 L0.48,0.40 L0.48,0.41 L0.49,0.43 L0.49,0.44 L0.49,0.45 L0.50,0.46 L0.50,0.47 L0.50,0.49 Z"] 12 11 RenderPath {circle} at (0,0) size 1x1 [data="M0.90,0.50 L0.90,0.51 L0.90,0.53 L0.90,0.54 L0.89,0.55 L0.89,0.56 L0.89,0.57 L0.88,0.59 L0.88,0.60 L0.87,0.61 L0.86,0.62 L0.85,0.63 L0.85,0.64 L0.84,0.65 L0.83,0.65 L0.82,0.66 L0.81,0.67 L0.80,0.68 L0.79,0.68 L0.77,0.69 L0.76,0.69 L0.75,0.69 L0.74,0.70 L0.73,0.70 L0.71,0.70 L0.70,0.70 L0.69,0.70 L0.67,0.70 L0.66,0.70 L0.65,0.69 L0.64,0.69 L0.63,0.69 L0.61,0.68 L0.60,0.68 L0.59,0.67 L0.58,0.66 L0.57,0.65 L0.56,0.65 L0.55,0.64 L0.55,0.63 L0.54,0.62 L0.53,0.61 L0.52,0.60 L0.52,0.59 L0.51,0.57 L0.51,0.56 L0.51,0.55 L0.50,0.54 L0.50,0.53 L0.50,0.51 L0.50,0.50 L0.50,0.49 L0.50,0.47 L0.50,0.46 L0.51,0.45 L0.51,0.44 L0.51,0.43 L0.52,0.41 L0.52,0.40 L0.53,0.39 L0.54,0.38 L0.55,0.37 L0.55,0.36 L0.56,0.35 L0.57,0.35 L0.58,0.34 L0.59,0.33 L0.60,0.32 L0.61,0.32 L0.63,0.31 L0.64,0.31 L0.65,0.31 L0.66,0.30 L0.67,0.30 L0.69,0.30 L0.70,0.30 L0.71,0.30 L0.73,0.30 L0.74,0.30 L0.75,0.31 L0.76,0.31 L0.77,0.31 L0.79,0.32 L0.80,0.32 L0.81,0.33 L0.82,0.34 L0.83,0.35 L0.84,0.35 L0.85,0.36 L0.85,0.37 L0.86,0.38 L0.87,0.39 L0.88,0.40 L0.88,0.41 L0.89,0.43 L0.89,0.44 L0.89,0.45 L0.90,0.46 L0.90,0.47 L0.90,0.49 Z"] 13 RenderPath {rect} at (170,60) size 160x80 [fill={[type=SOLID] [color=#00008B]}] [clip path="one"] [data="M150.00,0.00 L350.00,0.00 L350.00,200.00 L150.00,200.00 Z"] 12 RenderPath {rect} at (170,60) size 160x80 [fill={[type=SOLID] [color=#00008B]}] [data="M150.00,0.00 L350.00,0.00 L350.00,200.00 L150.00,200.00 Z"] 13 [clipPath="one"] RenderSVGResourceClipper {clipPath} at (170,60) size 160x80 14 14 RenderSVGText {text} at (50,110) size 111x18 contains 1 chunk(s) 15 15 RenderSVGInlineText {#text} at (0,-14) size 111x18 -
trunk/LayoutTests/platform/mac/svg/W3C-SVG-1.1/masking-path-01-b-expected.txt
r54483 r55289 1 KCanvasResource {id="clip1" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M200.00,10.00 L260.00,10.00 L260.00,110.00 L200.00,110.00 Z]]]}2 KCanvasResource {id="clip2" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M90.00,150.00 L265.00,150.00 L265.00,250.00 L90.00,250.00 Z], [winding=NON-ZERO] [path=M225.00,160.00 L320.00,160.00 L320.00,235.00 L225.00,235.00 Z]]]}3 1 layer at (0,0) size 480x360 4 2 RenderView at (0,0) size 480x360 … … 7 5 RenderSVGContainer {g} at (20,17) size 325x269 8 6 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 9 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="clip1"] [clipPathUnits=userSpaceOnUse] 10 8 RenderPath {rect} at (200,10) size 60x100 [fill={[type=SOLID] [color=#000000]}] [data="M200.00,10.00 L260.00,10.00 L260.00,110.00 L200.00,110.00 Z"] 11 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x09 RenderSVGResourceClipper {clipPath} [id="clip2"] [clipPathUnits=userSpaceOnUse] 12 10 RenderPath {rect} at (90,150) size 175x100 [fill={[type=SOLID] [color=#000000]}] [data="M90.00,150.00 L265.00,150.00 L265.00,250.00 L90.00,250.00 Z"] 13 11 RenderPath {rect} at (225,160) size 95x75 [fill={[type=SOLID] [color=#000000]}] [data="M225.00,160.00 L320.00,160.00 L320.00,235.00 L225.00,235.00 Z"] 14 RenderPath {rect} at (200,17) size 60x66 [stroke={[type=SOLID] [color=#000000] [stroke width=5.00]}] [fill={[type=SOLID] [color=#FF0000]}] [clip path="clip1"] [data="M20.00,20.00 L460.00,20.00 L460.00,80.00 L20.00,80.00 Z"] 12 RenderPath {rect} at (200,17) size 60x66 [stroke={[type=SOLID] [color=#000000] [stroke width=5.00]}] [fill={[type=SOLID] [color=#FF0000]}] [data="M20.00,20.00 L460.00,20.00 L460.00,80.00 L20.00,80.00 Z"] 13 [clipPath="clip1"] RenderSVGResourceClipper {clipPath} at (200,10) size 60x100 15 14 RenderSVGText {text} at (20,130) size 325x33 contains 1 chunk(s) 16 15 RenderSVGInlineText {#text} at (0,-27) size 325x33 17 16 chunk 1 text run 1 at (20.00,130.00) startOffset 0 endOffset 23 width 325.00: "Rectangle being clipped" 18 RenderSVGContainer {g} at (112,153) size 208x97 [clip path="clip2"] 17 RenderSVGContainer {g} at (112,153) size 208x97 18 [clipPath="clip2"] RenderSVGResourceClipper {clipPath} at (90,150) size 230x100 19 19 RenderPath {rect} at (112,187) size 231x46 [stroke={[type=SOLID] [color=#0000FF] [stroke width=5.00]}] [fill={[type=SOLID] [color=#00FFFF]}] [data="M115.00,190.00 L340.00,190.00 L340.00,230.00 L115.00,230.00 Z"] 20 20 RenderPath {rect} at (112,237) size 231x46 [stroke={[type=SOLID] [color=#008000] [stroke width=5.00]}] [fill={[type=SOLID] [color=#00FF00]}] [data="M115.00,240.00 L340.00,240.00 L340.00,280.00 L115.00,280.00 Z"] -
trunk/LayoutTests/platform/mac/svg/W3C-SVG-1.1/masking-path-02-b-expected.txt
r54483 r55289 1 KCanvasResource {id="clip1" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [bounding box mode=1] [path=M0.25,0.50 L0.85,0.50 L0.85,1.50 L0.25,1.50 Z]]]}2 KCanvasResource {id="clip2" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M60.00,60.00 L140.00,60.00 L140.00,140.00 L60.00,140.00 Z]]]}3 1 layer at (0,0) size 480x360 4 2 RenderView at (0,0) size 480x360 … … 6 4 RenderSVGRoot {svg} at (0,0) size 480x360 7 5 RenderSVGContainer {g} at (20,50) size 457x236 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="clip1"] [clipPathUnits=objectBoundingBox] 9 7 RenderPath {rect} at (0,0) size 1x2 [fill={[type=SOLID] [color=#000000]}] [data="M0.25,0.50 L0.85,0.50 L0.85,1.50 L0.25,1.50 Z"] 10 RenderPath {rect} at (117,50) size 259x40 [fill={[type=SOLID] [color=#FF0000]}] [clip path="clip1"] [data="M10.00,10.00 L440.00,10.00 L440.00,90.00 L10.00,90.00 Z"] 8 RenderPath {rect} at (117,50) size 259x40 [fill={[type=SOLID] [color=#FF0000]}] [data="M10.00,10.00 L440.00,10.00 L440.00,90.00 L10.00,90.00 Z"] 9 [clipPath="clip1"] RenderSVGResourceClipper {clipPath} at (117.50,50) size 258x80 11 10 RenderSVGText {text} at (20,130) size 457x33 contains 1 chunk(s) 12 11 RenderSVGInlineText {#text} at (0,-27) size 457x33 13 12 chunk 1 text run 1 at (20.00,130.00) startOffset 0 endOffset 31 width 457.00: "clipPathUnits=objectBoundingBox" 14 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x013 RenderSVGResourceClipper {clipPath} [id="clip2"] [clipPathUnits=userSpaceOnUse] 15 14 RenderPath {rect} at (60,60) size 80x80 [fill={[type=SOLID] [color=#000000]}] [data="M60.00,60.00 L140.00,60.00 L140.00,140.00 L60.00,140.00 Z"] 16 RenderPath {rect} at (184,157) size 86x86 [transform={m=((0.71,-0.71)(0.71,0.71)) t=(100.00,200.00)}] [fill={[type=SOLID] [color=#0000FF]}] [clip path="clip2"] [data="M0.00,0.00 L120.00,0.00 L120.00,120.00 L0.00,120.00 Z"] 15 RenderPath {rect} at (184,157) size 86x86 [transform={m=((0.71,-0.71)(0.71,0.71)) t=(100.00,200.00)}] [fill={[type=SOLID] [color=#0000FF]}] [data="M0.00,0.00 L120.00,0.00 L120.00,120.00 L0.00,120.00 Z"] 16 [clipPath="clip2"] RenderSVGResourceClipper {clipPath} at (60,60) size 80x80 17 17 RenderSVGText {text} at (20,280) size 434x33 contains 1 chunk(s) 18 18 RenderSVGInlineText {#text} at (0,-27) size 434x33 -
trunk/LayoutTests/platform/mac/svg/W3C-SVG-1.1/masking-path-04-b-expected.txt
r54483 r55289 1 KCanvasResource {id="sample" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}2 1 layer at (0,0) size 480x360 3 2 RenderView at (0,0) size 480x360 … … 6 5 RenderSVGContainer {g} at (20,20) size 420x310 7 6 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="sample"] [clipPathUnits=userSpaceOnUse] 9 8 RenderSVGText {text} at (45,270) size 353x122 contains 1 chunk(s) 10 9 RenderSVGInlineText {#text} at (0,-101) size 353x122 … … 16 15 chunk 1 text run 1 at (55.00,130.00) startOffset 0 endOffset 9 width 353.00: "Clip Test" 17 16 RenderSVGContainer {g} at (20,170) size 410x160 18 RenderSVGImage {image} at (20,170) size 410x160 [clip path="sample"] 17 RenderSVGImage {image} at (20,170) size 410x160 18 [clipPath="sample"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 19 19 RenderSVGText {text} at (10,340) size 264x46 contains 1 chunk(s) 20 20 RenderSVGInlineText {#text} at (0,-36) size 264x46 -
trunk/LayoutTests/platform/mac/svg/W3C-SVG-1.1/masking-path-05-f-expected.txt
r54483 r55289 1 KCanvasResource {id="clip1" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M200.00,40.00 L220.00,40.00 L220.00,100.00 L240.00,100.00 L240.00,80.00 L180.00,80.00 L180.00,60.00 L260.00,60.00 L260.00,120.00 L200.00,120.00 L200.00,40.00 Z]]]}2 KCanvasResource {id="clip2" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M200.00,170.00 L220.00,170.00 L220.00,230.00 L240.00,230.00 L240.00,210.00 L180.00,210.00 L180.00,190.00 L260.00,190.00 L260.00,250.00 L200.00,250.00 L200.00,170.00 Z]]]}3 1 layer at (0,0) size 480x360 4 2 RenderView at (0,0) size 480x360 … … 9 7 RenderSVGInlineText {#text} at (0,-13) size 164x16 10 8 chunk 1 text run 1 at (150.00,20.00) startOffset 0 endOffset 28 width 164.00: "Test for clip-rule property." 11 RenderSVGHiddenContainer {clipPath} at (0,0) size 0x0 12 RenderPath {path} at (180,40) size 80x80 [fill={[type=SOLID] [color=#000000]}] [data="M200.00,40.00 L220.00,40.00 L220.00,100.00 L240.00,100.00 L240.00,80.00 L180.00,80.00 L180.00,60.00 L260.00,60.00 L260.00,120.00 L200.00,120.00 L200.00,40.00 Z"] 13 RenderPath {rect} at (180,40) size 80x80 [fill={[type=SOLID] [color=#FF0000]}] [clip path="clip1"] [data="M50.00,30.00 L400.00,30.00 L400.00,130.00 L50.00,130.00 Z"] 9 RenderSVGResourceClipper {clipPath} [id="clip1"] [clipPathUnits=userSpaceOnUse] 10 RenderPath {path} at (180,40) size 80x80 [fill={[type=SOLID] [color=#000000]}] [clip rule=EVEN-ODD] [data="M200.00,40.00 L220.00,40.00 L220.00,100.00 L240.00,100.00 L240.00,80.00 L180.00,80.00 L180.00,60.00 L260.00,60.00 L260.00,120.00 L200.00,120.00 L200.00,40.00 Z"] 11 RenderPath {rect} at (180,40) size 80x80 [fill={[type=SOLID] [color=#FF0000]}] [data="M50.00,30.00 L400.00,30.00 L400.00,130.00 L50.00,130.00 Z"] 12 [clipPath="clip1"] RenderSVGResourceClipper {clipPath} at (180,40) size 80x80 14 13 RenderSVGText {text} at (100,140) size 99x14 contains 1 chunk(s) 15 14 RenderSVGInlineText {#text} at (0,-11) size 99x14 16 15 chunk 1 text run 1 at (100.00,140.00) startOffset 0 endOffset 17 width 99.00: "clip-rule=evenodd" 17 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x016 RenderSVGResourceClipper {clipPath} [id="clip2"] [clipPathUnits=userSpaceOnUse] 18 17 RenderPath {path} at (180,170) size 80x80 [fill={[type=SOLID] [color=#000000]}] [data="M200.00,170.00 L220.00,170.00 L220.00,230.00 L240.00,230.00 L240.00,210.00 L180.00,210.00 L180.00,190.00 L260.00,190.00 L260.00,250.00 L200.00,250.00 L200.00,170.00 Z"] 19 RenderPath {rect} at (180,170) size 80x80 [fill={[type=SOLID] [color=#0000FF]}] [clip path="clip2"] [data="M50.00,160.00 L400.00,160.00 L400.00,260.00 L50.00,260.00 Z"] 18 RenderPath {rect} at (180,170) size 80x80 [fill={[type=SOLID] [color=#0000FF]}] [data="M50.00,160.00 L400.00,160.00 L400.00,260.00 L50.00,260.00 Z"] 19 [clipPath="clip2"] RenderSVGResourceClipper {clipPath} at (180,170) size 80x80 20 20 RenderSVGText {text} at (100,270) size 92x14 contains 1 chunk(s) 21 21 RenderSVGInlineText {#text} at (0,-11) size 92x14 -
trunk/LayoutTests/platform/mac/svg/W3C-SVG-1.1/painting-marker-02-f-expected.txt
r54483 r55289 1 KCanvasResource {id="overflowHiddenClip1" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L2.00,0.00 L2.00,2.00 L0.00,2.00 Z]]]}2 KCanvasResource {id="overflowHiddenClip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L4.00,0.00 L4.00,4.00 L0.00,4.00 Z]]]}3 1 KCanvasResource {id="marker1" [type=MARKER] [angle=0.00] [ref x=5.00 y=5.00]} 4 2 KCanvasResource {id="marker2" [type=MARKER] [angle=0.00] [ref x=10.00 y=10.00]} … … 11 9 RenderSVGContainer {g} at (0,0) size 448x272 12 10 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 13 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x011 RenderSVGResourceClipper {clipPath} [id="overflowHiddenClip1"] [clipPathUnits=userSpaceOnUse] 14 12 RenderPath {rect} at (0,0) size 2x2 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L2.00,0.00 L2.00,2.00 L0.00,2.00 Z"] 15 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x013 RenderSVGResourceClipper {clipPath} [id="overflowHiddenClip"] [clipPathUnits=userSpaceOnUse] 16 14 RenderPath {rect} at (0,0) size 4x4 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L4.00,0.00 L4.00,4.00 L0.00,4.00 Z"] 17 15 RenderSVGText {text} at (125,30) size 184x16 contains 1 chunk(s) … … 28 26 RenderPath {path} at (150,60) size 50x50 [fill={[type=SOLID] [color=#000000]}] [data="M30.00,60.00 L80.00,60.00 L80.00,110.00 Z"] 29 27 RenderSVGContainer {g} at (142,52) size 16x16 [transform={m=((8.00,0.00)(0.00,8.00)) t=(22.00,52.00)}] 30 RenderSVGContainer {g} at (142,52) size 16x16 [clip path="overflowHiddenClip1"] 28 RenderSVGContainer {g} at (142,52) size 16x16 29 [clipPath="overflowHiddenClip1"] RenderSVGResourceClipper {clipPath} at (0,0) size 2x2 31 30 RenderSVGContainer {g} at (142,52) size 16x16 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 32 31 RenderPath {rect} at (142,52) size 16x16 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"] 33 32 RenderSVGContainer {g} at (192,52) size 16x16 [transform={m=((8.00,0.00)(0.00,8.00)) t=(72.00,52.00)}] 34 RenderSVGContainer {g} at (192,52) size 16x16 [clip path="overflowHiddenClip1"] 33 RenderSVGContainer {g} at (192,52) size 16x16 34 [clipPath="overflowHiddenClip1"] RenderSVGResourceClipper {clipPath} at (0,0) size 2x2 35 35 RenderSVGContainer {g} at (192,52) size 16x16 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 36 36 RenderPath {rect} at (192,52) size 16x16 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"] 37 37 RenderSVGContainer {g} at (192,102) size 16x16 [transform={m=((8.00,0.00)(0.00,8.00)) t=(72.00,102.00)}] 38 RenderSVGContainer {g} at (192,102) size 16x16 [clip path="overflowHiddenClip1"] 38 RenderSVGContainer {g} at (192,102) size 16x16 39 [clipPath="overflowHiddenClip1"] RenderSVGResourceClipper {clipPath} at (0,0) size 2x2 39 40 RenderSVGContainer {g} at (192,102) size 16x16 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 40 41 RenderPath {rect} at (192,102) size 16x16 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"] … … 49 50 RenderPath {path} at (385,58) size 57x57 [stroke={[type=SOLID] [color=#000000] [stroke width=4.00]}] [data="M270.00,60.00 L320.00,60.00 L320.00,110.00 Z"] 50 51 RenderSVGContainer {g} at (382,52) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(262.00,52.00)}] 51 RenderSVGContainer {g} at (382,52) size 16x16 [clip path="overflowHiddenClip"] 52 RenderSVGContainer {g} at (382,52) size 16x16 53 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 52 54 RenderSVGContainer {g} at (378,48) size 24x24 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 53 55 RenderPath {rect} at (378,48) size 24x24 [stroke={[type=SOLID] [color=#000000] [stroke width=4.00]}] [data="M0.00,0.00 L20.00,0.00 L20.00,20.00 L0.00,20.00 Z"] 54 56 RenderSVGContainer {g} at (432,52) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(312.00,52.00)}] 55 RenderSVGContainer {g} at (432,52) size 16x16 [clip path="overflowHiddenClip"] 57 RenderSVGContainer {g} at (432,52) size 16x16 58 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 56 59 RenderSVGContainer {g} at (428,48) size 24x24 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 57 60 RenderPath {rect} at (428,48) size 24x24 [stroke={[type=SOLID] [color=#000000] [stroke width=4.00]}] [data="M0.00,0.00 L20.00,0.00 L20.00,20.00 L0.00,20.00 Z"] 58 61 RenderSVGContainer {g} at (432,102) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(312.00,102.00)}] 59 RenderSVGContainer {g} at (432,102) size 16x16 [clip path="overflowHiddenClip"] 62 RenderSVGContainer {g} at (432,102) size 16x16 63 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 60 64 RenderSVGContainer {g} at (428,98) size 24x24 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 61 65 RenderPath {rect} at (428,98) size 24x24 [stroke={[type=SOLID] [color=#000000] [stroke width=4.00]}] [data="M0.00,0.00 L20.00,0.00 L20.00,20.00 L0.00,20.00 Z"] … … 74 78 RenderSVGContainer {g} at (142,182) size 66x66 75 79 RenderSVGContainer {g} at (142,182) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(22.00,182.00)}] 76 RenderSVGContainer {g} at (142,182) size 16x16 [clip path="overflowHiddenClip"] 80 RenderSVGContainer {g} at (142,182) size 16x16 81 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 77 82 RenderSVGContainer {g} at (138,178) size 24x24 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 78 83 RenderPath {rect} at (138,178) size 24x24 [stroke={[type=SOLID] [color=#000000] [stroke width=8.00]}] [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L20.00,0.00 L20.00,20.00 L0.00,20.00 Z"] 79 84 RenderSVGContainer {g} at (192,182) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(72.00,182.00)}] 80 RenderSVGContainer {g} at (192,182) size 16x16 [clip path="overflowHiddenClip"] 85 RenderSVGContainer {g} at (192,182) size 16x16 86 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 81 87 RenderSVGContainer {g} at (188,178) size 24x24 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 82 88 RenderPath {rect} at (188,178) size 24x24 [stroke={[type=SOLID] [color=#000000] [stroke width=8.00]}] [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L20.00,0.00 L20.00,20.00 L0.00,20.00 Z"] 83 89 RenderSVGContainer {g} at (192,232) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(72.00,232.00)}] 84 RenderSVGContainer {g} at (192,232) size 16x16 [clip path="overflowHiddenClip"] 90 RenderSVGContainer {g} at (192,232) size 16x16 91 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 85 92 RenderSVGContainer {g} at (188,228) size 24x24 [transform={m=((0.20,0.00)(0.00,0.20)) t=(0.00,0.00)}] 86 93 RenderPath {rect} at (188,228) size 24x24 [stroke={[type=SOLID] [color=#000000] [stroke width=8.00]}] [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L20.00,0.00 L20.00,20.00 L0.00,20.00 Z"] … … 94 101 RenderSVGContainer {g} at (382,182) size 66x66 95 102 RenderSVGContainer {g} at (382,182) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(262.00,182.00)}] 96 RenderSVGContainer {g} at (382,182) size 16x16 [clip path="overflowHiddenClip"] 103 RenderSVGContainer {g} at (382,182) size 16x16 104 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 97 105 RenderSVGContainer {g} at (378,178) size 24x24 [transform={m=((0.40,0.00)(0.00,0.40)) t=(0.00,0.00)}] 98 106 RenderPath {rect} at (378,178) size 24x24 [stroke={[type=SOLID] [color=#0000FF] [stroke width=4.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"] 99 107 RenderSVGContainer {g} at (432,182) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(312.00,182.00)}] 100 RenderSVGContainer {g} at (432,182) size 16x16 [clip path="overflowHiddenClip"] 108 RenderSVGContainer {g} at (432,182) size 16x16 109 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 101 110 RenderSVGContainer {g} at (428,178) size 24x24 [transform={m=((0.40,0.00)(0.00,0.40)) t=(0.00,0.00)}] 102 111 RenderPath {rect} at (428,178) size 24x24 [stroke={[type=SOLID] [color=#0000FF] [stroke width=4.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"] 103 112 RenderSVGContainer {g} at (432,232) size 16x16 [transform={m=((4.00,0.00)(0.00,4.00)) t=(312.00,232.00)}] 104 RenderSVGContainer {g} at (432,232) size 16x16 [clip path="overflowHiddenClip"] 113 RenderSVGContainer {g} at (432,232) size 16x16 114 [clipPath="overflowHiddenClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 4x4 105 115 RenderSVGContainer {g} at (428,228) size 24x24 [transform={m=((0.40,0.00)(0.00,0.40)) t=(0.00,0.00)}] 106 116 RenderPath {rect} at (428,228) size 24x24 [stroke={[type=SOLID] [color=#0000FF] [stroke width=4.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"] -
trunk/LayoutTests/platform/mac/svg/batik/text/textEffect2-expected.txt
r54483 r55289 1 1 KRenderingPaintServer {id="grad" [type=LINEAR-GRADIENT] [stops=[(0.00,#FFD700), (0.50,#FFA500), (1.00,#DC143C)]] [start=(0,0)] [end=(1,0)]} 2 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}3 KCanvasResource {id="svgClip" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}4 2 layer at (0,0) size 800x600 5 3 RenderView at (0,0) size 800x600 … … 18 16 RenderSVGGradientStop {stop} at (0,0) size 0x0 19 17 RenderSVGGradientStop {stop} at (0,0) size 0x0 20 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x018 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 21 19 RenderSVGText {text} at (100,200) size 152x59 contains 1 chunk(s) 22 20 RenderSVGInlineText {#text} at (0,-48) size 152x59 23 21 chunk 1 text run 1 at (100.00,200.00) startOffset 0 endOffset 5 width 152.00: "BATIK" 24 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x022 RenderSVGResourceClipper {clipPath} [id="svgClip"] [clipPathUnits=userSpaceOnUse] 25 23 RenderSVGText {text} at (100,300) size 152x59 contains 1 chunk(s) 26 24 RenderSVGInlineText {#text} at (0,-48) size 152x59 27 25 chunk 1 text run 1 at (100.00,300.00) startOffset 0 endOffset 5 width 152.00: "BATIK" 28 RenderPath {rect} at (100,160) size 200x45 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FFD700), (0.50,#FFA500), (1.00,#DC143C)]] [start=(0,0)] [end=(1,0)]}] [clip path="clip"] [data="M100.00,160.00 L300.00,160.00 L300.00,205.00 L100.00,205.00 Z"] 26 RenderPath {rect} at (100,160) size 200x45 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FFD700), (0.50,#FFA500), (1.00,#DC143C)]] [start=(0,0)] [end=(1,0)]}] [data="M100.00,160.00 L300.00,160.00 L300.00,205.00 L100.00,205.00 Z"] 27 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 29 28 RenderSVGText {text} at (300,200) size 65x14 contains 1 chunk(s) 30 29 RenderSVGInlineText {#text} at (0,-11) size 65x14 31 30 chunk 1 text run 1 at (300.00,200.00) startOffset 0 endOffset 13 width 65.00: "(System font)" 32 RenderPath {rect} at (100,260) size 200x45 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FFD700), (0.50,#FFA500), (1.00,#DC143C)]] [start=(0,0)] [end=(1,0)]}] [clip path="svgClip"] [data="M100.00,260.00 L300.00,260.00 L300.00,305.00 L100.00,305.00 Z"] 31 RenderPath {rect} at (100,260) size 200x45 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#FFD700), (0.50,#FFA500), (1.00,#DC143C)]] [start=(0,0)] [end=(1,0)]}] [data="M100.00,260.00 L300.00,260.00 L300.00,305.00 L100.00,305.00 Z"] 32 [clipPath="svgClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 33 33 RenderSVGText {text} at (300,300) size 55x14 contains 1 chunk(s) 34 34 RenderSVGInlineText {#text} at (0,-11) size 55x14 -
trunk/LayoutTests/platform/mac/svg/batik/text/textProperties-expected.txt
r54483 r55289 1 1 KCanvasResource {id="gaussianBlur" [type=FILTER] [bounding box=at (-100,-100) size 200x200] [bounding box mode=0]} 2 KCanvasResource {id="textClip" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}3 2 KRenderingPaintServer {id="gradient" [type=LINEAR-GRADIENT] [stops=[(0.00,#0000FF), (1.00,#008000)]] [bounding box mode=0] [start=(-50,-25)] [end=(50,25)]} 4 3 layer at (0,0) size 800x600 … … 133 132 chunk 1 (middle anchor) text run 1 at (-74.50,25.00) startOffset 0 endOffset 21 width 149.00: "stroke=\"MidnightBlue\"" 134 133 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 135 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x0134 RenderSVGResourceClipper {clipPath} [id="textClip"] [clipPathUnits=userSpaceOnUse] 136 135 RenderSVGText {text} at (-42,0) size 84x36 contains 1 chunk(s) 137 136 RenderSVGInlineText {#text} at (0,-28) size 84x36 … … 141 140 RenderSVGGradientStop {stop} at (0,0) size 0x0 142 141 RenderSVGContainer {g} at (300,345) size 100x50 [transform={m=((1.00,0.00)(0.00,1.00)) t=(350.00,370.00)}] 143 RenderPath {rect} at (300,345) size 100x50 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#0000FF), (1.00,#008000)]] [bounding box mode=0] [start=(-50,-25)] [end=(50,25)]}] [clip path="textClip"] [data="M-50.00,-25.00 L50.00,-25.00 L50.00,25.00 L-50.00,25.00 Z"] 142 RenderPath {rect} at (300,345) size 100x50 [fill={[type=LINEAR-GRADIENT] [stops=[(0.00,#0000FF), (1.00,#008000)]] [bounding box mode=0] [start=(-50,-25)] [end=(50,25)]}] [data="M-50.00,-25.00 L50.00,-25.00 L50.00,25.00 L-50.00,25.00 Z"] 143 [clipPath="textClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 144 144 RenderSVGText {text} at (-50,15) size 100x18 contains 1 chunk(s) 145 145 RenderSVGInlineText {#text} at (0,-14) size 100x18 -
trunk/LayoutTests/platform/mac/svg/css/clippath-with-shadow-expected.txt
r54483 r55289 1 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 6 5 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 7 6 RenderPath {rect} at (0,0) size 200x200 [transform={m=((1.00,0.00)(0.00,1.00)) t=(-200.00,0.00)}] [data="M200.00,0.00 L400.00,0.00 L400.00,200.00 L200.00,200.00 Z"] 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 9 8 RenderSVGContainer {use} at (0,0) size 210x210 10 9 RenderSVGContainer {g} at (0,0) size 210x210 11 10 RenderPath {rect} at (0,0) size 210x210 [transform={m=((1.00,0.00)(0.00,1.00)) t=(-200.00,0.00)}] [data="M200.00,0.00 L400.00,0.00 L400.00,200.00 L200.00,200.00 Z"] 12 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#008000]}] [clip path="clip"] [data="M0.00,0.00 L400.00,0.00 L400.00,200.00 L0.00,200.00 Z"] 11 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L400.00,0.00 L400.00,200.00 L0.00,200.00 Z"] 12 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-child-changes-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {path} at (0,0) size 100x100 [transform={m=((0.50,0.00)(0.00,0.50)) t=(0.00,0.00)}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 9 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"] 8 RenderSVGContainer {g} at (0,0) size 200x200 9 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 10 10 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 11 11 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-display-none-child-expected.txt
r54483 r55289 1 KCanvasResource {id="c" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="c"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 9 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="c"] 8 RenderSVGContainer {g} at (0,0) size 100x100 9 [clipPath="c"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 10 10 RenderPath {rect} at (0,0) size 200x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,100.00 L0.00,100.00 Z"] 11 11 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-href-changes-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {path} at (0,0) size 100x100 [transform={m=((0.50,0.00)(0.00,0.50)) t=(0.00,0.00)}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 9 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"] 8 RenderSVGContainer {g} at (0,0) size 200x200 9 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 10 10 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 11 11 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-referencing-use-expected.txt
r54483 r55289 1 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 6 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 9 8 RenderSVGContainer {use} at (0,0) size 100x100 10 9 RenderSVGContainer {g} at (0,0) size 100x100 11 10 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 12 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="clip"] 11 RenderSVGContainer {g} at (0,0) size 100x100 12 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 13 13 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 14 14 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-referencing-use2-expected.txt
r54483 r55289 20 20 CONSOLE MESSAGE: line 1: Error: Not allowed to use indirect reference in <clip-path> 21 21 CONSOLE MESSAGE: line 1: Error: Not allowed to use indirect reference in <clip-path> 22 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}23 22 layer at (0,0) size 800x600 24 23 RenderView at (0,0) size 800x600 … … 30 29 RenderSVGContainer {g} at (0,0) size 50x50 31 30 RenderPath {rect} at (0,0) size 50x50 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L50.00,0.00 L50.00,50.00 L0.00,50.00 Z"] 32 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x031 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 33 32 RenderSVGContainer {use} at (0,0) size 50x50 34 33 RenderSVGContainer {g} at (0,0) size 50x50 … … 36 35 RenderPath {rect} at (0,0) size 50x50 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L50.00,0.00 L50.00,50.00 L0.00,50.00 Z"] 37 36 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 38 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="clip"] 37 RenderSVGContainer {g} at (0,0) size 100x100 38 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 39 39 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 40 40 RenderSVGText {text} at (10,120) size 377x18 contains 1 chunk(s) -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-units-changes-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {path} at (0,0) size 100x100 [transform={m=((0.50,0.00)(0.00,0.50)) t=(0.00,0.00)}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 9 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"] 8 RenderSVGContainer {g} at (0,0) size 200x200 9 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 10 10 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 11 11 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/clip-path-with-transform-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {path} at (0,0) size 100x100 [transform={m=((0.50,0.00)(0.00,0.50)) t=(0.00,0.00)}] [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 9 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"] 8 RenderSVGContainer {g} at (0,0) size 200x200 9 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 10 10 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 11 11 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/empty-clip-path-expected.txt
r54483 r55289 1 KCanvasResource {id="nothing" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}2 KCanvasResource {id="emptyrect" [type=CLIPPER] [clip data=[[winding=EVEN-ODD] [path=M0.00,0.00 L0.00,0.00 L0.00,0.00 L0.00,0.00 Z]]]}3 1 layer at (0,0) size 800x600 4 2 RenderView at (0,0) size 800x600 … … 6 4 RenderSVGRoot {svg} at (0,0) size 800x600 7 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x09 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="nothing"] [clipPathUnits=userSpaceOnUse] 7 RenderSVGResourceClipper {clipPath} [id="emptyrect"] [clipPathUnits=userSpaceOnUse] 10 8 RenderPath {rect} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [data=""] 11 9 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 12 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="nothing"] 10 RenderSVGContainer {g} at (0,0) size 100x100 11 [clipPath="nothing"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 13 12 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 14 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="emptyrect"] 13 RenderSVGContainer {g} at (0,0) size 100x100 14 [clipPath="emptyrect"] RenderSVGResourceClipper {clipPath} at (0,0) size 0x0 15 15 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 16 16 RenderSVGContainer {g} at (0,116) size 452x38 -
trunk/LayoutTests/platform/mac/svg/custom/focus-ring-expected.txt
r54551 r55289 1 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 23 22 RenderSVGInlineText {#text} at (0,-14) size 76x18 24 23 chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 12 width 76.00: "focused text" 25 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x024 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 26 25 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 27 RenderSVGImage {image} at (0,0) size 0x0 [clip path="clip"] 28 RenderSVGImage {image} at (150,400) size 137x137 [transform={m=((0.87,0.50)(-0.50,0.87)) t=(200.00,400.00)}] [clip path="clip"] 26 RenderSVGImage {image} at (0,0) size 0x0 27 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 28 RenderSVGImage {image} at (150,400) size 137x137 [transform={m=((0.87,0.50)(-0.50,0.87)) t=(200.00,400.00)}] 29 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 29 30 RenderSVGContainer {g} at (310,400) size 137x137 [transform={m=((0.87,0.50)(-0.50,0.87)) t=(360.00,400.00)}] 30 RenderSVGImage {image} at (310,400) size 137x137 [clip path="clip"] 31 RenderSVGImage {image} at (310,400) size 137x137 32 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 -
trunk/LayoutTests/platform/mac/svg/custom/image-with-transform-clip-filter-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 KCanvasResource {id="myfilter" [type=FILTER] [bounding box=at (-10.00%,-10.00%) size 120.00%x120.00%]} 3 2 layer at (0,0) size 800x600 … … 6 5 RenderSVGRoot {svg} at (0,0) size 800x600 7 6 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 9 8 RenderPath {path} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 10 RenderSVGImage {image} at (0,0) size 100x75 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,-25.00)}] [clip path="myclip"] [filter=myfilter] 9 RenderSVGImage {image} at (0,0) size 100x75 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,-25.00)}] [filter=myfilter] 10 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 11 11 RenderSVGText {text} at (0,125) size 542x18 contains 1 chunk(s) 12 12 RenderSVGInlineText {#text} at (0,-14) size 542x18 -
trunk/LayoutTests/platform/mac/svg/custom/invalid-css-expected.txt
r54483 r55289 1 KCanvasResource {id="clip1" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M40.00,40.00 L39.98,40.63 L39.92,41.25 L39.82,41.87 L39.69,42.49 L39.51,43.09 L39.30,43.68 L39.05,44.26 L38.76,44.82 L38.44,45.36 L38.09,45.88 L37.71,46.37 L37.29,46.85 L36.85,47.29 L36.37,47.71 L35.88,48.09 L35.36,48.44 L34.82,48.76 L34.26,49.05 L33.68,49.30 L33.09,49.51 L32.49,49.69 L31.87,49.82 L31.25,49.92 L30.63,49.98 L30.00,50.00 L29.37,49.98 L28.75,49.92 L28.13,49.82 L27.51,49.69 L26.91,49.51 L26.32,49.30 L25.74,49.05 L25.18,48.76 L24.64,48.44 L24.12,48.09 L23.63,47.71 L23.15,47.29 L22.71,46.85 L22.29,46.37 L21.91,45.88 L21.56,45.36 L21.24,44.82 L20.95,44.26 L20.70,43.68 L20.49,43.09 L20.31,42.49 L20.18,41.87 L20.08,41.25 L20.02,40.63 L20.00,40.00 L20.02,39.37 L20.08,38.75 L20.18,38.13 L20.31,37.51 L20.49,36.91 L20.70,36.32 L20.95,35.74 L21.24,35.18 L21.56,34.64 L21.91,34.12 L22.29,33.63 L22.71,33.15 L23.15,32.71 L23.63,32.29 L24.12,31.91 L24.64,31.56 L25.18,31.24 L25.74,30.95 L26.32,30.70 L26.91,30.49 L27.51,30.31 L28.13,30.18 L28.75,30.08 L29.37,30.02 L30.00,30.00 L30.63,30.02 L31.25,30.08 L31.87,30.18 L32.49,30.31 L33.09,30.49 L33.68,30.70 L34.26,30.95 L34.82,31.24 L35.36,31.56 L35.88,31.91 L36.37,32.29 L36.85,32.71 L37.29,33.15 L37.71,33.63 L38.09,34.12 L38.44,34.64 L38.76,35.18 L39.05,35.74 L39.30,36.32 L39.51,36.91 L39.69,37.51 L39.82,38.13 L39.92,38.75 L39.98,39.37 Z]]]}2 1 KRenderingPaintServer {id="grad" [type=LINEAR-GRADIENT] [stops=[(0.00,#008000)]] [start=(0,0)] [end=(1,0)]} 3 2 KCanvasResource {id="blurxy" [type=FILTER] [bounding box=at (0,0) size 0x0] [bounding box mode=0]} … … 8 7 RenderSVGRoot {svg} at (0,0) size 800x600 9 8 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 10 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x09 RenderSVGResourceClipper {clipPath} [id="clip1"] [clipPathUnits=userSpaceOnUse] 11 10 RenderPath {circle} at (33,50) size 34x34 [fill={[type=SOLID] [color=#000000]}] [data="M40.00,40.00 L39.98,40.63 L39.92,41.25 L39.82,41.87 L39.69,42.49 L39.51,43.09 L39.30,43.68 L39.05,44.26 L38.76,44.82 L38.44,45.36 L38.09,45.88 L37.71,46.37 L37.29,46.85 L36.85,47.29 L36.37,47.71 L35.88,48.09 L35.36,48.44 L34.82,48.76 L34.26,49.05 L33.68,49.30 L33.09,49.51 L32.49,49.69 L31.87,49.82 L31.25,49.92 L30.63,49.98 L30.00,50.00 L29.37,49.98 L28.75,49.92 L28.13,49.82 L27.51,49.69 L26.91,49.51 L26.32,49.30 L25.74,49.05 L25.18,48.76 L24.64,48.44 L24.12,48.09 L23.63,47.71 L23.15,47.29 L22.71,46.85 L22.29,46.37 L21.91,45.88 L21.56,45.36 L21.24,44.82 L20.95,44.26 L20.70,43.68 L20.49,43.09 L20.31,42.49 L20.18,41.87 L20.08,41.25 L20.02,40.63 L20.00,40.00 L20.02,39.37 L20.08,38.75 L20.18,38.13 L20.31,37.51 L20.49,36.91 L20.70,36.32 L20.95,35.74 L21.24,35.18 L21.56,34.64 L21.91,34.12 L22.29,33.63 L22.71,33.15 L23.15,32.71 L23.63,32.29 L24.12,31.91 L24.64,31.56 L25.18,31.24 L25.74,30.95 L26.32,30.70 L26.91,30.49 L27.51,30.31 L28.13,30.18 L28.75,30.08 L29.37,30.02 L30.00,30.00 L30.63,30.02 L31.25,30.08 L31.87,30.18 L32.49,30.31 L33.09,30.49 L33.68,30.70 L34.26,30.95 L34.82,31.24 L35.36,31.56 L35.88,31.91 L36.37,32.29 L36.85,32.71 L37.29,33.15 L37.71,33.63 L38.09,34.12 L38.44,34.64 L38.76,35.18 L39.05,35.74 L39.30,36.32 L39.51,36.91 L39.69,37.51 L39.82,38.13 L39.92,38.75 L39.98,39.37 Z"] 12 11 RenderSVGHiddenContainer {linearGradient} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/svg/custom/js-late-clipPath-and-object-creation-expected.txt
r54483 r55289 1 KCanvasResource {id="dynClip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 6 5 RenderSVGContainer {g} at (16,40) size 318x174 [transform={m=((1.00,0.00)(0.00,1.50)) t=(0.00,0.00)}] 7 6 RenderSVGText {text} at (10,70) size 529x69 contains 1 chunk(s) 7 [clipPath="dynClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 8 8 RenderSVGInlineText {#text} at (0,-54) size 529x69 9 [clipPath="dynClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 9 10 chunk 1 text run 1 at (10.00,70.00) startOffset 0 endOffset 19 width 529.00: "Clipped. INVISIBLE." 10 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x011 RenderSVGResourceClipper {clipPath} [id="dynClip"] [clipPathUnits=userSpaceOnUse] 11 12 RenderPath {path} at (0,0) size 334x500 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/js-late-clipPath-creation-expected.txt
r54483 r55289 1 KCanvasResource {id="dynClip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 6 5 RenderSVGContainer {g} at (16,40) size 318x174 [transform={m=((1.00,0.00)(0.00,1.50)) t=(0.00,0.00)}] 7 6 RenderSVGText {text} at (10,70) size 529x69 contains 1 chunk(s) 7 [clipPath="dynClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 8 8 RenderSVGInlineText {#text} at (0,-54) size 529x69 9 [clipPath="dynClip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 9 10 chunk 1 text run 1 at (10.00,70.00) startOffset 0 endOffset 19 width 529.00: "Clipped. INVISIBLE." 10 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x011 RenderSVGResourceClipper {clipPath} [id="dynClip"] [clipPathUnits=userSpaceOnUse] 11 12 RenderPath {path} at (0,0) size 334x500 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/recursive-clippath-expected.txt
r54483 r55289 1 KCanvasResource {id="clipPath_0" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 4 3 layer at (0,0) size 800x600 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 RenderSVGHiddenContainer {clipPath} at (0,0) size 0x0 7 RenderPath {rect} at (0,0) size 100x100 [clip path="clipPath_0"] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 8 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [clip path="clipPath_0"] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 5 RenderSVGResourceClipper {clipPath} [id="clipPath_0"] [clipPathUnits=userSpaceOnUse] 6 RenderPath {rect} at (0,0) size 100x100 [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 7 [clipPath="clipPath_0"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 8 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 9 [clipPath="clipPath_0"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 9 10 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/resource-invalidate-on-target-update-expected.txt
r54991 r55289 1 1 KCanvasResource {id="filter" [type=FILTER] [bounding box=at (-10.00%,-10.00%) size 120.00%x120.00%]} 2 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [bounding box mode=1] [path=M1.00,0.50 L1.00,0.53 L1.00,0.56 L0.99,0.59 L0.98,0.62 L0.98,0.65 L0.96,0.68 L0.95,0.71 L0.94,0.74 L0.92,0.77 L0.90,0.79 L0.89,0.82 L0.86,0.84 L0.84,0.86 L0.82,0.89 L0.79,0.90 L0.77,0.92 L0.74,0.94 L0.71,0.95 L0.68,0.96 L0.65,0.98 L0.62,0.98 L0.59,0.99 L0.56,1.00 L0.53,1.00 L0.50,1.00 L0.47,1.00 L0.44,1.00 L0.41,0.99 L0.38,0.98 L0.35,0.98 L0.32,0.96 L0.29,0.95 L0.26,0.94 L0.23,0.92 L0.21,0.90 L0.18,0.89 L0.16,0.86 L0.14,0.84 L0.11,0.82 L0.10,0.79 L0.08,0.77 L0.06,0.74 L0.05,0.71 L0.04,0.68 L0.02,0.65 L0.02,0.62 L0.01,0.59 L0.00,0.56 L0.00,0.53 L0.00,0.50 L0.00,0.47 L0.00,0.44 L0.01,0.41 L0.02,0.38 L0.02,0.35 L0.04,0.32 L0.05,0.29 L0.06,0.26 L0.08,0.23 L0.10,0.21 L0.11,0.18 L0.14,0.16 L0.16,0.14 L0.18,0.11 L0.21,0.10 L0.23,0.08 L0.26,0.06 L0.29,0.05 L0.32,0.04 L0.35,0.02 L0.38,0.02 L0.41,0.01 L0.44,0.00 L0.47,0.00 L0.50,0.00 L0.53,0.00 L0.56,0.00 L0.59,0.01 L0.62,0.02 L0.65,0.02 L0.68,0.04 L0.71,0.05 L0.74,0.06 L0.77,0.08 L0.79,0.10 L0.82,0.11 L0.84,0.14 L0.86,0.16 L0.89,0.18 L0.90,0.21 L0.92,0.23 L0.94,0.26 L0.95,0.29 L0.96,0.32 L0.98,0.35 L0.98,0.38 L0.99,0.41 L1.00,0.44 L1.00,0.47 Z]]]}3 2 layer at (0,0) size 800x600 4 3 RenderView at (0,0) size 800x600 … … 6 5 RenderSVGRoot {svg} at (0,0) size 800x600 7 6 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=objectBoundingBox] 9 8 RenderPath {circle} at (0,0) size 1x1 [fill={[type=SOLID] [color=#000000]}] [data="M1.00,0.50 L1.00,0.53 L1.00,0.56 L0.99,0.59 L0.98,0.62 L0.98,0.65 L0.96,0.68 L0.95,0.71 L0.94,0.74 L0.92,0.77 L0.90,0.79 L0.89,0.82 L0.86,0.84 L0.84,0.86 L0.82,0.89 L0.79,0.90 L0.77,0.92 L0.74,0.94 L0.71,0.95 L0.68,0.96 L0.65,0.98 L0.62,0.98 L0.59,0.99 L0.56,1.00 L0.53,1.00 L0.50,1.00 L0.47,1.00 L0.44,1.00 L0.41,0.99 L0.38,0.98 L0.35,0.98 L0.32,0.96 L0.29,0.95 L0.26,0.94 L0.23,0.92 L0.21,0.90 L0.18,0.89 L0.16,0.86 L0.14,0.84 L0.11,0.82 L0.10,0.79 L0.08,0.77 L0.06,0.74 L0.05,0.71 L0.04,0.68 L0.02,0.65 L0.02,0.62 L0.01,0.59 L0.00,0.56 L0.00,0.53 L0.00,0.50 L0.00,0.47 L0.00,0.44 L0.01,0.41 L0.02,0.38 L0.02,0.35 L0.04,0.32 L0.05,0.29 L0.06,0.26 L0.08,0.23 L0.10,0.21 L0.11,0.18 L0.14,0.16 L0.16,0.14 L0.18,0.11 L0.21,0.10 L0.23,0.08 L0.26,0.06 L0.29,0.05 L0.32,0.04 L0.35,0.02 L0.38,0.02 L0.41,0.01 L0.44,0.00 L0.47,0.00 L0.50,0.00 L0.53,0.00 L0.56,0.00 L0.59,0.01 L0.62,0.02 L0.65,0.02 L0.68,0.04 L0.71,0.05 L0.74,0.06 L0.77,0.08 L0.79,0.10 L0.82,0.11 L0.84,0.14 L0.86,0.16 L0.89,0.18 L0.90,0.21 L0.92,0.23 L0.94,0.26 L0.95,0.29 L0.96,0.32 L0.98,0.35 L0.98,0.38 L0.99,0.41 L1.00,0.44 L1.00,0.47 Z"] 10 9 RenderSVGResourceMasker {mask} [id="mask"] [maskUnits=objectBoundingBox] [maskContentUnits=objectBoundingBox] … … 13 12 RenderPath {rect} at (10,10) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M10.00,10.00 L110.00,10.00 L110.00,110.00 L10.00,110.00 Z"] 14 13 [masker="mask"] RenderSVGResourceMasker {mask} at (0,0) size 120x120 15 RenderPath {rect} at (10,130) size 100x100 [fill={[type=SOLID] [color=#008000]}] [clip path="clip"] [data="M10.00,130.00 L110.00,130.00 L110.00,230.00 L10.00,230.00 Z"] 14 RenderPath {rect} at (10,130) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M10.00,130.00 L110.00,130.00 L110.00,230.00 L10.00,230.00 Z"] 15 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (10,130) size 100x100 16 16 RenderPath {rect} at (0,240) size 121x120 [fill={[type=SOLID] [color=#008000]}] [filter=filter] [data="M10.00,250.00 L110.00,250.00 L110.00,350.00 L10.00,350.00 Z"] -
trunk/LayoutTests/platform/mac/svg/custom/text-clip-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M200.00,200.00 L300.00,200.00 L300.00,400.00 L200.00,400.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {path} at (200,200) size 100x200 [fill={[type=SOLID] [color=#000000]}] [data="M200.00,200.00 L300.00,200.00 L300.00,400.00 L200.00,400.00 Z"] 9 8 RenderSVGContainer {g} at (0,76) size 133x63 … … 12 11 chunk 1 text run 1 at (0.00,125.00) startOffset 0 endOffset 4 width 133.00: "PASS" 13 12 RenderSVGText {text} at (0,125) size 648x63 contains 1 chunk(s) 13 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (200,200) size 100x200 14 14 RenderSVGInlineText {#text} at (0,-49) size 648x63 15 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (200,200) size 100x200 15 16 chunk 1 text run 1 at (0.00,125.00) startOffset 0 endOffset 28 width 648.00: "FAIL (should be clipped out)" -
trunk/LayoutTests/platform/mac/svg/custom/visibility-override-clip-expected.txt
r54483 r55289 1 KCanvasResource {id="myclip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 5 4 RenderSVGRoot {svg} at (0,0) size 800x600 6 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 7 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x06 RenderSVGResourceClipper {clipPath} [id="myclip"] [clipPathUnits=userSpaceOnUse] 8 7 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 9 8 RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"] 10 RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"] 9 RenderSVGContainer {g} at (0,0) size 100x100 10 [clipPath="myclip"] RenderSVGResourceClipper {clipPath} at (0,0) size 100x100 11 11 RenderSVGContainer {g} at (0,0) size 200x200 12 12 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] -
trunk/LayoutTests/platform/mac/svg/filters/filter-clip-expected.txt
r54991 r55289 1 1 KCanvasResource {id="blur" [type=FILTER] [bounding box=at (-20.00%,-20.00%) size 140.00%x140.00%]} 2 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M120.00,70.00 L119.90,73.14 L119.61,76.27 L119.11,79.37 L118.43,82.43 L117.55,85.45 L116.49,88.41 L115.24,91.29 L113.82,94.09 L112.22,96.79 L110.45,99.39 L108.53,101.87 L106.45,104.23 L104.23,106.45 L101.87,108.53 L99.39,110.45 L96.79,112.22 L94.09,113.82 L91.29,115.24 L88.41,116.49 L85.45,117.55 L82.43,118.43 L79.37,119.11 L76.27,119.61 L73.14,119.90 L70.00,120.00 L66.86,119.90 L63.73,119.61 L60.63,119.11 L57.57,118.43 L54.55,117.55 L51.59,116.49 L48.71,115.24 L45.91,113.82 L43.21,112.22 L40.61,110.45 L38.13,108.53 L35.77,106.45 L33.55,104.23 L31.47,101.87 L29.55,99.39 L27.78,96.79 L26.18,94.09 L24.76,91.29 L23.51,88.41 L22.45,85.45 L21.57,82.43 L20.89,79.37 L20.39,76.27 L20.10,73.14 L20.00,70.00 L20.10,66.86 L20.39,63.73 L20.89,60.63 L21.57,57.57 L22.45,54.55 L23.51,51.59 L24.76,48.71 L26.18,45.91 L27.78,43.21 L29.55,40.61 L31.47,38.13 L33.55,35.77 L35.77,33.55 L38.13,31.47 L40.61,29.55 L43.21,27.78 L45.91,26.18 L48.71,24.76 L51.59,23.51 L54.55,22.45 L57.57,21.57 L60.63,20.89 L63.73,20.39 L66.86,20.10 L70.00,20.00 L73.14,20.10 L76.27,20.39 L79.37,20.89 L82.43,21.57 L85.45,22.45 L88.41,23.51 L91.29,24.76 L94.09,26.18 L96.79,27.78 L99.39,29.55 L101.87,31.47 L104.23,33.55 L106.45,35.77 L108.53,38.13 L110.45,40.61 L112.22,43.21 L113.82,45.91 L115.24,48.71 L116.49,51.59 L117.55,54.55 L118.43,57.57 L119.11,60.63 L119.61,63.73 L119.90,66.86 Z]]]}3 2 layer at (0,0) size 800x600 4 3 RenderView at (0,0) size 800x600 … … 9 8 RenderPath {rect} at (0,0) size 140x140 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L140.00,0.00 L140.00,140.00 L0.00,140.00 Z"] 10 9 RenderPath {circle} at (30,30) size 80x80 [fill={[type=SOLID] [color=#FFFF00]}] [data="M110.00,70.00 L109.92,72.51 L109.68,75.01 L109.29,77.50 L108.74,79.95 L108.04,82.36 L107.19,84.72 L106.19,87.03 L105.05,89.27 L103.77,91.43 L102.36,93.51 L100.82,95.50 L99.16,97.38 L97.38,99.16 L95.50,100.82 L93.51,102.36 L91.43,103.77 L89.27,105.05 L87.03,106.19 L84.72,107.19 L82.36,108.04 L79.95,108.74 L77.50,109.29 L75.01,109.68 L72.51,109.92 L70.00,110.00 L67.49,109.92 L64.99,109.68 L62.50,109.29 L60.05,108.74 L57.64,108.04 L55.28,107.19 L52.97,106.19 L50.73,105.05 L48.57,103.77 L46.49,102.36 L44.50,100.82 L42.62,99.16 L40.84,97.38 L39.18,95.50 L37.64,93.51 L36.23,91.43 L34.95,89.27 L33.81,87.03 L32.81,84.72 L31.96,82.36 L31.26,79.95 L30.71,77.50 L30.32,75.01 L30.08,72.51 L30.00,70.00 L30.08,67.49 L30.32,64.99 L30.71,62.50 L31.26,60.05 L31.96,57.64 L32.81,55.28 L33.81,52.97 L34.95,50.73 L36.23,48.57 L37.64,46.49 L39.18,44.50 L40.84,42.62 L42.62,40.84 L44.50,39.18 L46.49,37.64 L48.57,36.23 L50.73,34.95 L52.97,33.81 L55.28,32.81 L57.64,31.96 L60.05,31.26 L62.50,30.71 L64.99,30.32 L67.49,30.08 L70.00,30.00 L72.51,30.08 L75.01,30.32 L77.50,30.71 L79.95,31.26 L82.36,31.96 L84.72,32.81 L87.03,33.81 L89.27,34.95 L91.43,36.23 L93.51,37.64 L95.50,39.18 L97.38,40.84 L99.16,42.62 L100.82,44.50 L102.36,46.49 L103.77,48.57 L105.05,50.73 L106.19,52.97 L107.19,55.28 L108.04,57.64 L108.74,60.05 L109.29,62.50 L109.68,64.99 L109.92,67.49 Z"] 11 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x010 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 12 11 RenderPath {circle} at (20,20) size 100x100 [fill={[type=SOLID] [color=#000000]}] [data="M120.00,70.00 L119.90,73.14 L119.61,76.27 L119.11,79.37 L118.43,82.43 L117.55,85.45 L116.49,88.41 L115.24,91.29 L113.82,94.09 L112.22,96.79 L110.45,99.39 L108.53,101.87 L106.45,104.23 L104.23,106.45 L101.87,108.53 L99.39,110.45 L96.79,112.22 L94.09,113.82 L91.29,115.24 L88.41,116.49 L85.45,117.55 L82.43,118.43 L79.37,119.11 L76.27,119.61 L73.14,119.90 L70.00,120.00 L66.86,119.90 L63.73,119.61 L60.63,119.11 L57.57,118.43 L54.55,117.55 L51.59,116.49 L48.71,115.24 L45.91,113.82 L43.21,112.22 L40.61,110.45 L38.13,108.53 L35.77,106.45 L33.55,104.23 L31.47,101.87 L29.55,99.39 L27.78,96.79 L26.18,94.09 L24.76,91.29 L23.51,88.41 L22.45,85.45 L21.57,82.43 L20.89,79.37 L20.39,76.27 L20.10,73.14 L20.00,70.00 L20.10,66.86 L20.39,63.73 L20.89,60.63 L21.57,57.57 L22.45,54.55 L23.51,51.59 L24.76,48.71 L26.18,45.91 L27.78,43.21 L29.55,40.61 L31.47,38.13 L33.55,35.77 L35.77,33.55 L38.13,31.47 L40.61,29.55 L43.21,27.78 L45.91,26.18 L48.71,24.76 L51.59,23.51 L54.55,22.45 L57.57,21.57 L60.63,20.89 L63.73,20.39 L66.86,20.10 L70.00,20.00 L73.14,20.10 L76.27,20.39 L79.37,20.89 L82.43,21.57 L85.45,22.45 L88.41,23.51 L91.29,24.76 L94.09,26.18 L96.79,27.78 L99.39,29.55 L101.87,31.47 L104.23,33.55 L106.45,35.77 L108.53,38.13 L110.45,40.61 L112.22,43.21 L113.82,45.91 L115.24,48.71 L116.49,51.59 L117.55,54.55 L118.43,57.57 L119.11,60.63 L119.61,63.73 L119.90,66.86 Z"] 13 RenderPath {rect} at (20,20) size 100x100 [fill={[type=SOLID] [color=#008000]}] [ clip path="clip"] [filter=blur] [data="M20.00,20.00 L120.00,20.00 L120.00,120.00 L20.00,120.00 Z"]12 RenderPath {rect} at (20,20) size 100x100 [fill={[type=SOLID] [color=#008000]}] [filter=blur] [data="M20.00,20.00 L120.00,20.00 L120.00,120.00 L20.00,120.00 Z"] 14 13 [masker="mask"] RenderSVGResourceMasker {mask} at (10,10) size 120x120 14 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (20,20) size 100x100 -
trunk/LayoutTests/svg/custom/use-clipped-transform-expected.txt
r54483 r55289 1 KCanvasResource {id="clip" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z]]]}2 1 layer at (0,0) size 800x600 3 2 RenderView at (0,0) size 800x600 … … 6 5 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"] 7 6 RenderPath {rect} at (0,0) size 200x200 [transform={m=((1.00,0.00)(0.00,1.00)) t=(-200.00,0.00)}] [data="M200.00,0.00 L400.00,0.00 L400.00,200.00 L200.00,200.00 Z"] 8 RenderSVG HiddenContainer {clipPath} at (0,0) size 0x07 RenderSVGResourceClipper {clipPath} [id="clip"] [clipPathUnits=userSpaceOnUse] 9 8 RenderSVGContainer {use} at (0,0) size 200x200 10 9 RenderSVGContainer {g} at (0,0) size 200x200 11 10 RenderPath {rect} at (0,0) size 200x200 [transform={m=((1.00,0.00)(0.00,1.00)) t=(-200.00,0.00)}] [data="M200.00,0.00 L400.00,0.00 L400.00,200.00 L200.00,200.00 Z"] 12 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#008000]}] [clip path="clip"] [data="M0.00,0.00 L400.00,0.00 L400.00,200.00 L0.00,200.00 Z"] 11 RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L400.00,0.00 L400.00,200.00 L0.00,200.00 Z"] 12 [clipPath="clip"] RenderSVGResourceClipper {clipPath} at (0,0) size 200x200 -
trunk/WebCore/Android.mk
r55142 r55289 604 604 rendering/RenderSVGInlineText.cpp \ 605 605 rendering/RenderSVGModelObject.cpp \ 606 rendering/RenderSVGResourceClipper.cpp \ 606 607 rendering/RenderSVGResourceMasker.cpp \ 607 608 rendering/RenderSVGRoot.cpp \ … … 857 858 svg/graphics/SVGPaintServerSolid.cpp \ 858 859 svg/graphics/SVGResource.cpp \ 859 svg/graphics/SVGResourceClipper.cpp \860 860 svg/graphics/SVGResourceFilter.cpp \ 861 861 svg/graphics/SVGResourceMarker.cpp \ -
trunk/WebCore/ChangeLog
r55287 r55289 1 2010-02-26 Dirk Schulze <krit@webkit.org> 2 3 Reviewed by Nikolas Zimmermann. 4 5 SVGResourceClipper needs to be moved to RenderSVGResourceClipper 6 https://bugs.webkit.org/show_bug.cgi?id=35421 7 8 Move SVGResourceClipper to RenderSVGResourceClipper. This follows the changes 9 of Masker and helps to clean up the SVG code. Code snippets from SVGClipPathElement 10 and SVGResourceClipper got combined in RenderSVGResourceClipper. DRT results are 11 more readable for clipPath's now. It's possible to see the unit type of clipper, as 12 well as it's childs instead of just one path. 13 14 * Android.mk: 15 * GNUmakefile.am: 16 * WebCore.vcproj/WebCore.vcproj: 17 * WebCore.xcodeproj/project.pbxproj: 18 * rendering/RenderSVGResource.h: 19 (WebCore::): 20 * rendering/RenderSVGResourceClipper.cpp: Added. 21 (WebCore::RenderSVGResourceClipper::RenderSVGResourceClipper): 22 (WebCore::RenderSVGResourceClipper::~RenderSVGResourceClipper): 23 (WebCore::RenderSVGResourceClipper::invalidateClients): 24 (WebCore::RenderSVGResourceClipper::invalidateClient): 25 (WebCore::RenderSVGResourceClipper::applyResource): 26 (WebCore::RenderSVGResourceClipper::resourceBoundingBox): 27 * rendering/RenderSVGResourceClipper.h: Added. 28 (WebCore::RenderSVGResourceClipper::renderName): 29 (WebCore::RenderSVGResourceClipper::resourceType): 30 (WebCore::RenderSVGResourceClipper::clipPathUnits): 31 * rendering/SVGRenderSupport.cpp: 32 (WebCore::SVGRenderBase::prepareToRenderSVGContent): 33 (WebCore::SVGRenderBase::clipperBoundingBoxForRenderer): 34 (WebCore::SVGRenderBase::deregisterFromResources): 35 * rendering/SVGRenderTreeAsText.cpp: 36 (WebCore::operator<<): 37 (WebCore::writeStyle): 38 (WebCore::writeSVGResource): 39 (WebCore::writeResources): 40 * svg/SVGClipPathElement.cpp: 41 (WebCore::SVGClipPathElement::svgAttributeChanged): 42 (WebCore::SVGClipPathElement::childrenChanged): 43 (WebCore::SVGClipPathElement::createRenderer): 44 * svg/SVGClipPathElement.h: 45 (WebCore::SVGClipPathElement::isValid): 46 * svg/SVGStyledElement.cpp: 47 (WebCore::SVGStyledElement::invalidateResources): 48 * svg/graphics/SVGResource.h: 49 (WebCore::): 50 (WebCore::SVGResource::isPaintServer): 51 (WebCore::SVGResource::isFilter): 52 (WebCore::SVGResource::isMarker): 53 * svg/graphics/SVGResourceClipper.cpp: Removed. 54 * svg/graphics/SVGResourceClipper.h: Removed. 55 1 56 2010-02-26 Ben Murdoch <benm@google.com> 2 57 -
trunk/WebCore/GNUmakefile.am
r55253 r55289 3010 3010 WebCore/rendering/RenderSVGModelObject.h \ 3011 3011 WebCore/rendering/RenderSVGResource.h \ 3012 WebCore/rendering/RenderSVGResourceClipper.cpp \ 3013 WebCore/rendering/RenderSVGResourceClipper.h \ 3012 3014 WebCore/rendering/RenderSVGResourceMasker.cpp \ 3013 3015 WebCore/rendering/RenderSVGResourceMasker.h \ … … 3347 3349 WebCore/svg/graphics/SVGResource.cpp \ 3348 3350 WebCore/svg/graphics/SVGResource.h \ 3349 WebCore/svg/graphics/SVGResourceClipper.cpp \3350 WebCore/svg/graphics/SVGResourceClipper.h \3351 3351 WebCore/svg/graphics/SVGResourceFilter.cpp \ 3352 3352 WebCore/svg/graphics/SVGResourceFilter.h \ -
trunk/WebCore/WebCore.gypi
r55233 r55289 3104 3104 'rendering/RenderSVGModelObject.h', 3105 3105 'rendering/RenderSVGResource.h', 3106 'rendering/RenderSVGResourceClipper.cpp', 3107 'rendering/RenderSVGResourceClipper.h', 3106 3108 'rendering/RenderSVGResourceMasker.cpp', 3107 3109 'rendering/RenderSVGResourceMasker.h', … … 3325 3327 'svg/graphics/SVGResource.cpp', 3326 3328 'svg/graphics/SVGResource.h', 3327 'svg/graphics/SVGResourceClipper.cpp',3328 'svg/graphics/SVGResourceClipper.h',3329 3329 'svg/graphics/SVGResourceFilter.cpp', 3330 3330 'svg/graphics/SVGResourceFilter.h', -
trunk/WebCore/WebCore.pro
r55253 r55289 1675 1675 rendering/RenderSVGModelObject.h \ 1676 1676 rendering/RenderSVGResource.h \ 1677 rendering/RenderSVGResourceClipper.h \ 1677 1678 rendering/RenderSVGResourceMasker.h \ 1678 1679 rendering/RenderSVGRoot.h \ … … 1763 1764 svg/graphics/SVGPaintServerRadialGradient.h \ 1764 1765 svg/graphics/SVGPaintServerSolid.h \ 1765 svg/graphics/SVGResourceClipper.h \1766 1766 svg/graphics/SVGResourceFilter.h \ 1767 1767 svg/graphics/SVGResource.h \ … … 2621 2621 svg/graphics/SVGPaintServerRadialGradient.cpp \ 2622 2622 svg/graphics/SVGPaintServerSolid.cpp \ 2623 svg/graphics/SVGResourceClipper.cpp \2624 2623 svg/graphics/SVGResource.cpp \ 2625 2624 svg/graphics/SVGResourceFilter.cpp \ … … 2635 2634 rendering/RenderSVGInlineText.cpp \ 2636 2635 rendering/RenderSVGModelObject.cpp \ 2636 rendering/RenderSVGResourceClipper.cpp \ 2637 2637 rendering/RenderSVGResourceMasker.cpp \ 2638 2638 rendering/RenderSVGRoot.cpp \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r55252 r55289 27634 27634 </File> 27635 27635 <File 27636 RelativePath="..\rendering\RenderSVGResourceClipper.cpp" 27637 > 27638 </File> 27639 <File 27640 RelativePath="..\rendering\RenderSVGResourceClipper.h" 27641 > 27642 </File> 27643 <File 27636 27644 RelativePath="..\rendering\RenderSVGResourceMasker.cpp" 27637 27645 > … … 41778 41786 <File 41779 41787 RelativePath="..\svg\graphics\SVGResource.h" 41780 >41781 </File>41782 <File41783 RelativePath="..\svg\graphics\SVGResourceClipper.cpp"41784 >41785 </File>41786 <File41787 RelativePath="..\svg\graphics\SVGResourceClipper.h"41788 41788 > 41789 41789 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r55250 r55289 1320 1320 84A81F410FC7E02700955300 /* SourceGraphic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84A81F3F0FC7E02700955300 /* SourceGraphic.cpp */; }; 1321 1321 84A81F420FC7E02700955300 /* SourceGraphic.h in Headers */ = {isa = PBXBuildFile; fileRef = 84A81F400FC7E02700955300 /* SourceGraphic.h */; }; 1322 84BDA16B11358D2A00DBF64C /* RenderSVGResourceClipper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84BDA16911358D2A00DBF64C /* RenderSVGResourceClipper.cpp */; }; 1323 84BDA16C11358D2A00DBF64C /* RenderSVGResourceClipper.h in Headers */ = {isa = PBXBuildFile; fileRef = 84BDA16A11358D2A00DBF64C /* RenderSVGResourceClipper.h */; }; 1322 1324 84D0C4041115F1D40018AA34 /* AffineTransform.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84D0C4031115F1D40018AA34 /* AffineTransform.cpp */; }; 1323 1325 84D0C4061115F1EA0018AA34 /* AffineTransform.h in Headers */ = {isa = PBXBuildFile; fileRef = 84D0C4051115F1EA0018AA34 /* AffineTransform.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 3689 3691 B25599B20D00D8BA00BB825C /* SVGResource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B255991A0D00D8B900BB825C /* SVGResource.cpp */; }; 3690 3692 B25599B30D00D8BA00BB825C /* SVGResource.h in Headers */ = {isa = PBXBuildFile; fileRef = B255991B0D00D8B900BB825C /* SVGResource.h */; }; 3691 B25599B40D00D8BA00BB825C /* SVGResourceClipper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B255991C0D00D8B900BB825C /* SVGResourceClipper.cpp */; };3692 B25599B50D00D8BA00BB825C /* SVGResourceClipper.h in Headers */ = {isa = PBXBuildFile; fileRef = B255991D0D00D8B900BB825C /* SVGResourceClipper.h */; };3693 3693 B25599B60D00D8BA00BB825C /* SVGResourceFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B255991E0D00D8B900BB825C /* SVGResourceFilter.cpp */; }; 3694 3694 B25599B70D00D8BA00BB825C /* SVGResourceFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = B255991F0D00D8B900BB825C /* SVGResourceFilter.h */; }; … … 6756 6756 84B2B1F8056BEF3A00D2B771 /* WebCoreKeyGenerator.m */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = WebCoreKeyGenerator.m; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 6757 6757 84B2B24F056BF15F00D2B771 /* SSLKeyGeneratorMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SSLKeyGeneratorMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 6758 84BDA16911358D2A00DBF64C /* RenderSVGResourceClipper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGResourceClipper.cpp; sourceTree = "<group>"; }; 6759 84BDA16A11358D2A00DBF64C /* RenderSVGResourceClipper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGResourceClipper.h; sourceTree = "<group>"; }; 6758 6760 84D0C4031115F1D40018AA34 /* AffineTransform.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AffineTransform.cpp; path = transforms/AffineTransform.cpp; sourceTree = "<group>"; }; 6759 6761 84D0C4051115F1EA0018AA34 /* AffineTransform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AffineTransform.h; path = transforms/AffineTransform.h; sourceTree = "<group>"; }; … … 8937 8939 B255991A0D00D8B900BB825C /* SVGResource.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = SVGResource.cpp; sourceTree = "<group>"; }; 8938 8940 B255991B0D00D8B900BB825C /* SVGResource.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SVGResource.h; sourceTree = "<group>"; }; 8939 B255991C0D00D8B900BB825C /* SVGResourceClipper.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = SVGResourceClipper.cpp; sourceTree = "<group>"; };8940 B255991D0D00D8B900BB825C /* SVGResourceClipper.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SVGResourceClipper.h; sourceTree = "<group>"; };8941 8941 B255991E0D00D8B900BB825C /* SVGResourceFilter.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = SVGResourceFilter.cpp; sourceTree = "<group>"; }; 8942 8942 B255991F0D00D8B900BB825C /* SVGResourceFilter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SVGResourceFilter.h; sourceTree = "<group>"; }; … … 14294 14294 B255991A0D00D8B900BB825C /* SVGResource.cpp */, 14295 14295 B255991B0D00D8B900BB825C /* SVGResource.h */, 14296 B255991C0D00D8B900BB825C /* SVGResourceClipper.cpp */,14297 B255991D0D00D8B900BB825C /* SVGResourceClipper.h */,14298 14296 B255991E0D00D8B900BB825C /* SVGResourceFilter.cpp */, 14299 14297 B255991F0D00D8B900BB825C /* SVGResourceFilter.h */, … … 15606 15604 isa = PBXGroup; 15607 15605 children = ( 15606 84BDA16911358D2A00DBF64C /* RenderSVGResourceClipper.cpp */, 15607 84BDA16A11358D2A00DBF64C /* RenderSVGResourceClipper.h */, 15608 15608 BC8C8FAA0DDCD2F200B592F4 /* style */, 15609 15609 A8CFF04B0A154F09000A4234 /* AutoTableLayout.cpp */, … … 17987 17987 A8F5C0B80F9285AC0098E06B /* RenderSVGModelObject.h in Headers */, 17988 17988 083192AA112B43050083C3B9 /* RenderSVGResource.h in Headers */, 17989 84BDA16C11358D2A00DBF64C /* RenderSVGResourceClipper.h in Headers */, 17989 17990 083192AC112B43050083C3B9 /* RenderSVGResourceMasker.h in Headers */, 17990 17991 AA31B5B50C1DFD1000AE7083 /* RenderSVGRoot.h in Headers */, … … 18308 18309 B2EBDC9D0AF77E3400AE4A68 /* SVGRenderTreeAsText.h in Headers */, 18309 18310 B25599B30D00D8BA00BB825C /* SVGResource.h in Headers */, 18310 B25599B50D00D8BA00BB825C /* SVGResourceClipper.h in Headers */,18311 18311 B25599B70D00D8BA00BB825C /* SVGResourceFilter.h in Headers */, 18312 18312 B25599B80D00D8BA00BB825C /* SVGResourceListener.h in Headers */, … … 20236 20236 853CA9DC0AEEC5E9002372DC /* RenderSVGInlineText.cpp in Sources */, 20237 20237 A8F5C0B90F9285AC0098E06B /* RenderSVGModelObject.cpp in Sources */, 20238 84BDA16B11358D2A00DBF64C /* RenderSVGResourceClipper.cpp in Sources */, 20238 20239 083192AB112B43050083C3B9 /* RenderSVGResourceMasker.cpp in Sources */, 20239 20240 AA31B5B40C1DFD1000AE7083 /* RenderSVGRoot.cpp in Sources */, … … 20534 20535 B2EBDC9C0AF77E3400AE4A68 /* SVGRenderTreeAsText.cpp in Sources */, 20535 20536 B25599B20D00D8BA00BB825C /* SVGResource.cpp in Sources */, 20536 B25599B40D00D8BA00BB825C /* SVGResourceClipper.cpp in Sources */,20537 20537 B25599B60D00D8BA00BB825C /* SVGResourceFilter.cpp in Sources */, 20538 20538 B25599B90D00D8BA00BB825C /* SVGResourceMarker.cpp in Sources */, -
trunk/WebCore/rendering/RenderSVGResource.h
r54991 r55289 29 29 30 30 enum RenderSVGResourceType { 31 MaskerResourceType 31 MaskerResourceType, 32 ClipperResourceType 32 33 }; 33 34 -
trunk/WebCore/rendering/SVGRenderSupport.cpp
r55260 r55289 5 5 * (C) 2009 Google, Inc. All rights reserved. 6 6 * (C) 2009 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 7 8 * 8 9 * This library is free software; you can redistribute it and/or … … 34 35 #include "RenderSVGContainer.h" 35 36 #include "RenderSVGResource.h" 37 #include "RenderSVGResourceClipper.h" 36 38 #include "RenderSVGResourceMasker.h" 37 39 #include "RenderView.h" 38 #include "SVGResourceClipper.h"39 40 #include "SVGResourceFilter.h" 40 41 #include "SVGStyledElement.h" … … 130 131 #endif 131 132 132 // apply Masker133 133 if (RenderSVGResourceMasker* masker = getRenderSVGResourceById<RenderSVGResourceMasker>(document, maskerId)) { 134 134 if (!masker->applyResource(object, paintInfo.context)) … … 137 137 svgElement->document()->accessSVGExtensions()->addPendingResource(maskerId, styledElement); 138 138 139 if (SVGResourceClipper* clipper = getClipperById(document, clipperId, object)) { 140 clipper->addClient(styledElement); 141 clipper->applyClip(paintInfo.context, object->objectBoundingBox()); 142 } else if (!clipperId.isEmpty()) 139 if (RenderSVGResourceClipper* clipper = getRenderSVGResourceById<RenderSVGResourceClipper>(document, clipperId)) 140 clipper->applyResource(object, paintInfo.context); 141 else if (!clipperId.isEmpty()) 143 142 svgElement->document()->accessSVGExtensions()->addPendingResource(clipperId, styledElement); 144 143 … … 288 287 FloatRect SVGRenderBase::clipperBoundingBoxForRenderer(const RenderObject* object) const 289 288 { 290 SVGResourceClipper* clipper = getClipperById(object->document(), object->style()->svgStyle()->clipPath(), object); 291 if (clipper) 292 return clipper->clipperBoundingBox(object->objectBoundingBox()); 289 if (RenderSVGResourceClipper* clipper = getRenderSVGResourceById<RenderSVGResourceClipper>(object->document(), object->style()->svgStyle()->clipPath())) 290 return clipper->resourceBoundingBox(object->objectBoundingBox()); 293 291 294 292 return FloatRect(); … … 305 303 void SVGRenderBase::deregisterFromResources(RenderObject* object) 306 304 { 307 // We only have a renderer for masker at the moment. 308 if (RenderSVGResourceMasker* resource = getRenderSVGResourceById<RenderSVGResourceMasker>(object->document(), object->style()->svgStyle()->maskElement())) 309 resource->invalidateClient(object); 305 // We only have the renderer for masker and clipper at the moment. 306 if (RenderSVGResourceMasker* masker = getRenderSVGResourceById<RenderSVGResourceMasker>(object->document(), object->style()->svgStyle()->maskElement())) 307 masker->invalidateClient(object); 308 if (RenderSVGResourceClipper* clipper = getRenderSVGResourceById<RenderSVGResourceClipper>(object->document(), object->style()->svgStyle()->clipPath())) 309 clipper->invalidateClient(object); 310 310 } 311 311 … … 329 329 } 330 330 331 } // namespace WebCore332 333 #endif // ENABLE(SVG)331 } 332 333 #endif -
trunk/WebCore/rendering/SVGRenderTreeAsText.cpp
r54991 r55289 35 35 #include "InlineTextBox.h" 36 36 #include "NodeRenderStyle.h" 37 #include "Path.h" 37 38 #include "RenderImage.h" 38 39 #include "RenderPath.h" 39 40 #include "RenderSVGContainer.h" 40 41 #include "RenderSVGInlineText.h" 42 #include "RenderSVGResourceClipper.h" 41 43 #include "RenderSVGResourceMasker.h" 42 44 #include "RenderSVGRoot.h" … … 48 50 #include "SVGPaintServerPattern.h" 49 51 #include "SVGPaintServerSolid.h" 50 #include "SVGResourceClipper.h"51 52 #include "SVGRootInlineBox.h" 52 53 #include "SVGStyledElement.h" … … 197 198 } 198 199 200 static TextStream& operator<<(TextStream& ts, const WindRule rule) 201 { 202 switch (rule) { 203 case RULE_NONZERO: 204 ts << "NON-ZERO"; 205 break; 206 case RULE_EVENODD: 207 ts << "EVEN-ODD"; 208 break; 209 } 210 211 return ts; 212 } 213 199 214 static TextStream& operator<<(TextStream& ts, const SVGUnitTypes::SVGUnitType& unitType) 200 215 { … … 317 332 ts << "}]"; 318 333 } 319 } 320 321 if (!svgStyle->clipPath().isEmpty()) 322 writeNameAndQuotedValue(ts, "clip path", svgStyle->clipPath()); 334 writeIfNotDefault(ts, "clip rule", svgStyle->clipRule(), RULE_NONZERO); 335 } 336 323 337 writeIfNotEmpty(ts, "start marker", svgStyle->startMarker()); 324 338 writeIfNotEmpty(ts, "middle marker", svgStyle->midMarker()); … … 497 511 writeNameValuePair(ts, "maskUnits", masker->maskUnits()); 498 512 writeNameValuePair(ts, "maskContentUnits", masker->maskContentUnits()); 513 } else if (resource->resourceType() == ClipperResourceType) { 514 RenderSVGResourceClipper* clipper = static_cast<RenderSVGResourceClipper*>(resource); 515 ASSERT(clipper); 516 writeNameValuePair(ts, "clipPathUnits", clipper->clipPathUnits()); 499 517 } 500 518 … … 569 587 } 570 588 } 589 if (!svgStyle->clipPath().isEmpty()) { 590 if (RenderSVGResourceClipper* clipper = getRenderSVGResourceById<RenderSVGResourceClipper>(object.document(), svgStyle->clipPath())) { 591 writeIndent(ts, indent); 592 ts << " "; 593 writeNameAndQuotedValue(ts, "clipPath", svgStyle->clipPath()); 594 ts << " "; 595 writeStandardPrefix(ts, *clipper, 0); 596 ts << " " << clipper->resourceBoundingBox(object.objectBoundingBox()) << "\n"; 597 } 598 } 571 599 // FIXME: Handle other RenderSVGResource* classes here, after converting them from SVGResource*. 572 600 } -
trunk/WebCore/svg/SVGClipPathElement.cpp
r53879 r55289 2 2 Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 3 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 4 Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 5 5 6 This library is free software; you can redistribute it and/or … … 27 28 #include "Document.h" 28 29 #include "MappedAttribute.h" 29 #include "RenderSVG HiddenContainer.h"30 #include "RenderSVGResourceClipper.h" 30 31 #include "SVGNames.h" 31 32 #include "SVGTransformList.h" … … 69 70 SVGStyledTransformableElement::svgAttributeChanged(attrName); 70 71 71 if (!m_clipper)72 return;73 74 72 if (attrName == SVGNames::clipPathUnitsAttr || 75 73 SVGTests::isKnownAttribute(attrName) || … … 77 75 SVGExternalResourcesRequired::isKnownAttribute(attrName) || 78 76 SVGStyledTransformableElement::isKnownAttribute(attrName)) 79 m_clipper->invalidate();77 invalidateCanvasResources(); 80 78 } 81 79 … … 99 97 { 100 98 SVGStyledTransformableElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); 101 102 if (!m_clipper) 103 return; 104 105 m_clipper->invalidate(); 99 invalidateCanvasResources(); 106 100 } 107 101 108 102 RenderObject* SVGClipPathElement::createRenderer(RenderArena* arena, RenderStyle*) 109 103 { 110 return new (arena) RenderSVGHiddenContainer(this); 111 } 112 113 SVGResource* SVGClipPathElement::canvasResource(const RenderObject*) 114 { 115 if (!m_clipper) 116 m_clipper = SVGResourceClipper::create(); 117 else 118 m_clipper->resetClipData(); 119 120 bool bbox = clipPathUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX; 121 122 for (Node* node = firstChild(); node; node = node->nextSibling()) { 123 if (!node->isSVGElement() || !static_cast<SVGElement*>(node)->isStyledTransformable()) 124 continue; 125 SVGStyledTransformableElement* styled = static_cast<SVGStyledTransformableElement*>(node); 126 RenderStyle* style = styled->renderer() ? styled->renderer()->style() : 0; 127 if (!style || style->display() == NONE) 128 continue; 129 Path pathData = styled->toClipPath(); 130 if (pathData.isEmpty()) 131 continue; 132 m_clipper->addClipData(pathData, style->svgStyle()->clipRule(), bbox); 133 } 134 if (m_clipper->clipData().isEmpty()) { 135 Path pathData; 136 pathData.addRect(FloatRect()); 137 m_clipper->addClipData(pathData, RULE_EVENODD, bbox); 138 } 139 return m_clipper.get(); 104 return new (arena) RenderSVGResourceClipper(this); 140 105 } 141 106 -
trunk/WebCore/svg/SVGClipPathElement.h
r53879 r55289 26 26 #include "SVGExternalResourcesRequired.h" 27 27 #include "SVGLangSpace.h" 28 #include "SVGResourceClipper.h"29 28 #include "SVGStyledTransformableElement.h" 30 29 #include "SVGTests.h" 31 30 32 31 namespace WebCore { 32 class SVGClipPathElement : public SVGStyledTransformableElement, 33 public SVGTests, 34 public SVGLangSpace, 35 public SVGExternalResourcesRequired { 36 public: 37 SVGClipPathElement(const QualifiedName&, Document*); 38 virtual ~SVGClipPathElement(); 33 39 34 class SVGClipPathElement : public SVGStyledTransformableElement, 35 public SVGTests, 36 public SVGLangSpace, 37 public SVGExternalResourcesRequired { 38 public: 39 SVGClipPathElement(const QualifiedName&, Document*); 40 virtual ~SVGClipPathElement(); 40 virtual bool isValid() const { return SVGTests::isValid(); } 41 41 42 virtual bool isValid() const { return SVGTests::isValid(); } 42 virtual void parseMappedAttribute(MappedAttribute*); 43 virtual void svgAttributeChanged(const QualifiedName&); 44 virtual void synchronizeProperty(const QualifiedName&); 45 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 43 46 44 virtual void parseMappedAttribute(MappedAttribute*); 45 virtual void svgAttributeChanged(const QualifiedName&); 46 virtual void synchronizeProperty(const QualifiedName&); 47 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 47 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 48 48 49 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 50 virtual SVGResource* canvasResource(const RenderObject*);49 private: 50 DECLARE_ANIMATED_PROPERTY(SVGClipPathElement, SVGNames::clipPathUnitsAttr, int, ClipPathUnits, clipPathUnits) 51 51 52 private: 53 DECLARE_ANIMATED_PROPERTY(SVGClipPathElement, SVGNames::clipPathUnitsAttr, int, ClipPathUnits, clipPathUnits) 52 // SVGExternalResourcesRequired 53 DECLARE_ANIMATED_PROPERTY(SVGClipPathElement, SVGNames::externalResourcesRequiredAttr, bool, ExternalResourcesRequired, externalResourcesRequired) 54 }; 54 55 55 // SVGExternalResourcesRequired 56 DECLARE_ANIMATED_PROPERTY(SVGClipPathElement, SVGNames::externalResourcesRequiredAttr, bool, ExternalResourcesRequired, externalResourcesRequired) 56 } 57 57 58 RefPtr<SVGResourceClipper> m_clipper;59 };60 61 } // namespace WebCore62 63 #endif // ENABLE(SVG)64 58 #endif 59 #endif -
trunk/WebCore/svg/SVGStyledElement.cpp
r54991 r55289 34 34 #include "RenderObject.h" 35 35 #include "RenderSVGResource.h" 36 #include "RenderSVGResourceClipper.h" 36 37 #include "RenderSVGResourceMasker.h" 37 38 #include "SVGElement.h" … … 40 41 #include "SVGNames.h" 41 42 #include "SVGRenderStyle.h" 42 #include "SVGResourceClipper.h"43 43 #include "SVGResourceFilter.h" 44 44 #include "SVGSVGElement.h" … … 239 239 masker->invalidateClient(object); 240 240 241 SVGResourceClipper* clipper = getClipperById(document, svgStyle->clipPath(), object); 242 if (clipper) 243 clipper->invalidate(); 241 if (RenderSVGResourceClipper* clipper = getRenderSVGResourceById<RenderSVGResourceClipper>(document, svgStyle->clipPath())) 242 clipper->invalidateClient(object); 244 243 } 245 244 -
trunk/WebCore/svg/graphics/SVGResource.h
r54991 r55289 38 38 namespace WebCore { 39 39 40 41 42 43 40 class AtomicString; 41 class Document; 42 class SVGStyledElement; 43 class TextStream; 44 44 45 enum SVGResourceType { 46 // Painting mode 47 ClipperResourceType = 0, 48 ImageResourceType, 49 FilterResourceType, 50 MarkerResourceType, 51 PaintServerResourceType, 52 53 // For resource tracking we need to know how many types of resource there are 54 _ResourceTypeCount 55 }; 45 enum SVGResourceType { 46 // Painting mode 47 ImageResourceType, 48 FilterResourceType, 49 MarkerResourceType, 50 PaintServerResourceType, 51 52 // For resource tracking we need to know how many types of resource there are 53 _ResourceTypeCount 54 }; 56 55 57 // The SVGResource file represent various graphics resources: 58 // - Filter resource 59 // - Clipper resource 60 // - Masker resource 61 // - Marker resource 62 // - Pattern resource 63 // - Linear/Radial gradient resource 64 // 65 // SVG creates/uses these resources. 56 // The SVGResource file represent various graphics resources: 57 // - Filter resource 58 // - Marker resource 59 // - Pattern resource 60 // - Linear/Radial gradient resource 61 // 62 // SVG creates/uses these resources. 66 63 67 68 69 70 71 64 class SVGResource : public RefCounted<SVGResource> { 65 public: 66 virtual ~SVGResource(); 67 68 virtual void invalidate(); 72 69 73 void addClient(SVGStyledElement*); 74 virtual SVGResourceType resourceType() const = 0; 75 76 bool isPaintServer() const { return resourceType() == PaintServerResourceType; } 77 bool isFilter() const { return resourceType() == FilterResourceType; } 78 bool isClipper() const { return resourceType() == ClipperResourceType; } 79 bool isMarker() const { return resourceType() == MarkerResourceType; } 70 void addClient(SVGStyledElement*); 71 virtual SVGResourceType resourceType() const = 0; 72 73 bool isPaintServer() const { return resourceType() == PaintServerResourceType; } 74 bool isFilter() const { return resourceType() == FilterResourceType; } 75 bool isMarker() const { return resourceType() == MarkerResourceType; } 80 76 81 77 virtual TextStream& externalRepresentation(TextStream&) const; 82 78 83 84 79 static void invalidateClients(HashSet<SVGStyledElement*>); 80 static void removeClient(SVGStyledElement*); 85 81 86 87 82 protected: 83 SVGResource(); 88 84 89 90 91 85 private: 86 HashSet<SVGStyledElement*> m_clients; 87 }; 92 88 93 SVGResource* getResourceById(Document*, const AtomicString&, const RenderObject*); 94 95 TextStream& operator<<(TextStream&, const SVGResource&); 89 SVGResource* getResourceById(Document*, const AtomicString&, const RenderObject*); 96 90 97 } // namespace WebCore 91 TextStream& operator<<(TextStream&, const SVGResource&); 92 93 } 98 94 99 95 #endif 100 #endif // SVGResource_h96 #endif
Note: See TracChangeset
for help on using the changeset viewer.