LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Mar 2006 16:32:31 +0000 (16:32 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Mar 2006 16:32:31 +0000 (16:32 +0000)
commitff3edc0fb8a758671c22e8e1c9b79b08ec65236c
tree3520167c565b3e16e05c7acd8a9bb35001b5b21a
parentfb1540c588f7e3bb92c7789337cf6b3920c1c611
LayoutTests:

        Reviewed by Darin.

        * fast/canvas: Added.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6103
          Rectangles are not filled according to the Web Applications Working Draft

        * fast/canvas/fillrect_gradient-expected.checksum: Added.
        * fast/canvas/fillrect_gradient-expected.png: Added.
        * fast/canvas/fillrect_gradient-expected.txt: Added.
        * fast/canvas/fillrect_gradient.html: Added.

        - moved other canvas tests here

        * fast/canvas/image-object-in-canvas-expected.checksum: Added.
        * fast/canvas/image-object-in-canvas-expected.png: Added.
        * fast/canvas/image-object-in-canvas-expected.txt: Added.
        * fast/canvas/image-object-in-canvas.html: Added.
        * fast/canvas/quadraticCurveTo-expected.checksum: Added.
        * fast/canvas/quadraticCurveTo-expected.png: Added.
        * fast/canvas/quadraticCurveTo-expected.txt: Added.
        * fast/canvas/quadraticCurveTo.xml: Added.
        * fast/canvas/resources: Added.
        * fast/canvas/resources/apple.gif: Added.

        * fast/dom/image-object-in-canvas-expected.checksum: Removed.
        * fast/dom/image-object-in-canvas-expected.png: Removed.
        * fast/dom/image-object-in-canvas-expected.txt: Removed.
        * fast/dom/image-object-in-canvas.html: Removed.
        * fast/dom/quadraticCurveTo-expected.checksum: Removed.
        * fast/dom/quadraticCurveTo-expected.png: Removed.
        * fast/dom/quadraticCurveTo-expected.txt: Removed.
        * fast/dom/quadraticCurveTo.xml: Removed.

WebCore:

        Test: fast/canvas/fillrect_gradient.html

        Reviewed by Darin.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6103
          Rectangles are not filled according to the Web Applications Working Draft

        * khtml/ecma/kjs_html.cpp: (KJS::Context2DFunction::callAsFunction):
        Modified fillrect function to check and use a gradient if set.
        Builds a path to fill rects with a gradient.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/canvas/fillrect_gradient-expected.checksum [new file with mode: 0644]
LayoutTests/fast/canvas/fillrect_gradient-expected.png [new file with mode: 0644]
LayoutTests/fast/canvas/fillrect_gradient-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/fillrect_gradient.html [new file with mode: 0644]
LayoutTests/fast/canvas/image-object-in-canvas-expected.checksum [moved from LayoutTests/fast/dom/image-object-in-canvas-expected.checksum with 100% similarity]
LayoutTests/fast/canvas/image-object-in-canvas-expected.png [moved from LayoutTests/fast/dom/image-object-in-canvas-expected.png with 100% similarity]
LayoutTests/fast/canvas/image-object-in-canvas-expected.txt [moved from LayoutTests/fast/dom/image-object-in-canvas-expected.txt with 100% similarity]
LayoutTests/fast/canvas/image-object-in-canvas.html [moved from LayoutTests/fast/dom/image-object-in-canvas.html with 100% similarity]
LayoutTests/fast/canvas/quadraticCurveTo-expected.checksum [moved from LayoutTests/fast/dom/quadraticCurveTo-expected.checksum with 100% similarity]
LayoutTests/fast/canvas/quadraticCurveTo-expected.png [moved from LayoutTests/fast/dom/quadraticCurveTo-expected.png with 100% similarity]
LayoutTests/fast/canvas/quadraticCurveTo-expected.txt [moved from LayoutTests/fast/dom/quadraticCurveTo-expected.txt with 100% similarity]
LayoutTests/fast/canvas/quadraticCurveTo.xml [moved from LayoutTests/fast/dom/quadraticCurveTo.xml with 100% similarity]
LayoutTests/fast/canvas/resources/apple.gif [new file with mode: 0644]
WebCore/ChangeLog
WebCore/khtml/ecma/kjs_html.cpp