2006-01-16 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jan 2006 02:37:42 +0000 (02:37 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jan 2006 02:37:42 +0000 (02:37 +0000)
        Reviewed by beth.

        A proactive test case to prevent crashes in recursive clippath defs

        * svg/custom/recursive-clippath-expected.checksum: Added.
        * svg/custom/recursive-clippath-expected.png: Added.
        * svg/custom/recursive-clippath-expected.txt: Added.
        * svg/custom/recursive-clippath.svg: Added.

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

LayoutTests/ChangeLog
LayoutTests/svg/custom/recursive-clippath-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/recursive-clippath-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/recursive-clippath-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/recursive-clippath.svg [new file with mode: 0644]

index 40f5955ea88a20c312467828f62c4cac3febb113..b83f254a2f9ffa4c1637cb02540b0630708753da 100644 (file)
@@ -1,3 +1,14 @@
+2006-01-16  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by beth.
+
+        A proactive test case to prevent crashes in recursive clippath defs
+
+        * svg/custom/recursive-clippath-expected.checksum: Added.
+        * svg/custom/recursive-clippath-expected.png: Added.
+        * svg/custom/recursive-clippath-expected.txt: Added.
+        * svg/custom/recursive-clippath.svg: Added.
+
 2006-01-16  Geoffrey Garen  <ggaren@apple.com>
 
         - Added layout test for 
diff --git a/LayoutTests/svg/custom/recursive-clippath-expected.checksum b/LayoutTests/svg/custom/recursive-clippath-expected.checksum
new file mode 100644 (file)
index 0000000..7363841
--- /dev/null
@@ -0,0 +1 @@
+778803df0a824ed8f2c7dfa07c56832e
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/recursive-clippath-expected.png b/LayoutTests/svg/custom/recursive-clippath-expected.png
new file mode 100644 (file)
index 0000000..3db2634
Binary files /dev/null and b/LayoutTests/svg/custom/recursive-clippath-expected.png differ
diff --git a/LayoutTests/svg/custom/recursive-clippath-expected.txt b/LayoutTests/svg/custom/recursive-clippath-expected.txt
new file mode 100644 (file)
index 0000000..c98d68a
--- /dev/null
@@ -0,0 +1,6 @@
+KCanvasResource {id="clipPath_0" [type=CLIPPER] [clip data=[[winding=NON-ZERO] [path=M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00]]]}
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+    KCanvasContainer {svg} at (0,0) size 200x200
+      KCanvasItem {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [clip path="#clipPath_0"] [data="M0.00,0.00L200.00,0.00L200.00,200.00L0.00,200.00"]
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
diff --git a/LayoutTests/svg/custom/recursive-clippath.svg b/LayoutTests/svg/custom/recursive-clippath.svg
new file mode 100644 (file)
index 0000000..83d9bc0
--- /dev/null
@@ -0,0 +1,7 @@
+<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
+    <clippath id='clipPath_0'>
+        <rect x='0' y='0' width='100' height='100' fill='none' clip-path='url(#clipPath_0)' />
+    </clippath>
+    <rect x='0' y='0' width='200' height='200' fill='red' clip-path='url(#clipPath_0)' />
+    <rect x='0' y='0' width='100' height='100' fill='green' />
+</svg>