Bug #: 6042
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Dec 2005 17:40:18 +0000 (17:40 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Dec 2005 17:40:18 +0000 (17:40 +0000)
Submitted by: rob buis
Reviewed by: eseidel
        "S" and "T" path types handle control points incorrectly
        http://bugzilla.opendarwin.org/show_bug.cgi?id=6042

        * svg/custom/control-points-for-S-and-T-expected.checksum: Added.
        * svg/custom/control-points-for-S-and-T-expected.png: Added.
        * svg/custom/control-points-for-S-and-T-expected.txt: Added.
        * svg/custom/control-points-for-S-and-T.svg: Added.

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

LayoutTests/ChangeLog
LayoutTests/svg/custom/control-points-for-S-and-T-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/control-points-for-S-and-T-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/control-points-for-S-and-T-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/control-points-for-S-and-T.svg [new file with mode: 0644]

index 2649537fc73b048cf31305c1cd795610a04c2276..029d8707c0d5109886cf75f5bc2e3c16f0075562 100644 (file)
@@ -1,3 +1,15 @@
+2005-12-12  Rob Buis  <rwlbuis@xs4all.nl>
+
+        Reviewed by eseidel.  Committed by eseidel.
+
+        "S" and "T" path types handle control points incorrectly
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=6042
+
+        * svg/custom/control-points-for-S-and-T-expected.checksum: Added.
+        * svg/custom/control-points-for-S-and-T-expected.png: Added.
+        * svg/custom/control-points-for-S-and-T-expected.txt: Added.
+        * svg/custom/control-points-for-S-and-T.svg: Added.
+
 2005-12-12  Darin Adler  <darin@apple.com>
 
         Reviewed by Eric.
diff --git a/LayoutTests/svg/custom/control-points-for-S-and-T-expected.checksum b/LayoutTests/svg/custom/control-points-for-S-and-T-expected.checksum
new file mode 100644 (file)
index 0000000..ac7a766
--- /dev/null
@@ -0,0 +1 @@
+926e588ad5db0eef9e0231c610414a1f
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/control-points-for-S-and-T-expected.png b/LayoutTests/svg/custom/control-points-for-S-and-T-expected.png
new file mode 100644 (file)
index 0000000..a3941e9
Binary files /dev/null and b/LayoutTests/svg/custom/control-points-for-S-and-T-expected.png differ
diff --git a/LayoutTests/svg/custom/control-points-for-S-and-T-expected.txt b/LayoutTests/svg/custom/control-points-for-S-and-T-expected.txt
new file mode 100644 (file)
index 0000000..f2f0dae
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 480x360
+  RenderCanvas at (0,0) size 480x360
+    KCanvasContainer {svg} at (49,33) size 150x217
+      KCanvasItem {path} at (49,33) size 150x100 [stroke={[type=SOLID] [color=#FF0000]}] [data="M50.00,50.00C66.67,116.67,100.00,133.33,150.00,100.00C150.00,100.00,175.00,0.00,200.00,50.00"]
+      KCanvasItem {path} at (49,137) size 150x113 [stroke={[type=SOLID] [color=#008000]}] [data="M50.00,150.00C75.00,100.00,75.00,250.00,150.00,200.00C150.00,200.00,166.67,216.67,200.00,250.00"]
diff --git a/LayoutTests/svg/custom/control-points-for-S-and-T.svg b/LayoutTests/svg/custom/control-points-for-S-and-T.svg
new file mode 100644 (file)
index 0000000..cc9e41b
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg">
+    <path d="M 50 50 Q 75 150 150 100 S 175 0 200 50" fill="none" stroke="red"/>
+    <path d="M 50 150 C 75 100 75 250 150 200 T 200 250" fill="none" stroke="green"/>
+</svg>