WebCore:
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Sep 2004 19:38:22 +0000 (19:38 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Sep 2004 19:38:22 +0000 (19:38 +0000)
commit5cf58a05b7e7ecce9566aa3209316c972e6927b4
tree83d77ccd3254856a0e5e0447012cf586b13cdea3
parent7169e84407acafaf8244fac0d9e600488b89e4cc
WebCore:
Finished implementation of gradient support in <canvas>.

        Reviewed by John.

        * khtml/ecma/kjs_html.cpp:
        (KJS::HTMLElementFunction::tryCall):
        (isGradient):
        (isImagePattern):
        (KJS::Context2DFunction::tryCall):
        (Context2D::putValue):
        (Context2D::Context2D):
        (KJS::GradientFunction::tryCall):
        (gradientCallback):
        (Gradient::commonInit):
        (Gradient::Gradient):
        (Gradient::~Gradient):
        (Gradient::getShading):
        (Gradient::addColorStop):
        (sortStops):
        (Gradient::colorStops):
        * khtml/ecma/kjs_html.h:
        (KJS::ColorStop::ColorStop):
        * khtml/ecma/kjs_html.lut.h:
        (KJS::):

Tests:
        Test page for gradients usage in the <canvas>.

        Reviewed by John.

        * html/canvas_gradient.html: Added.
        * html/gibson.jpg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/ecma/kjs_html.cpp
WebCore/khtml/ecma/kjs_html.h
WebCore/khtml/ecma/kjs_html.lut.h