We're changing the way color is specified as a parameter in the
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Jul 2004 20:43:31 +0000 (20:43 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Jul 2004 20:43:31 +0000 (20:43 +0000)
commitb7f9d04e187659bcb56aa9a984b20746a5851fea
tree3dc3b9bd7be6ca220f20a726aaaeb6d5988ad121
parentdee17fddcf1757d0ad64c7c842f9fbb13baccdfc
    We're changing the way color is specified as a parameter in the
        <canvas> API.  Colors are now specified using the CSS color
        functions (or old style names or "#").  For example
        'context.setStrokeColor ("rgba(128,128,128,0.5)")'.  Most of the
        patch is cleanup of duplicated code in cssparser.cpp and a new
        static function that'll crank up the CSS parser to parse the
        color. This patch leaves the old mechanisms in place for now, so
        we don't break any existing gadgets.

        Reviewed by John.

        * WebCore.pbproj/project.pbxproj:
        * khtml/css/cssparser.cpp:
        (CSSParser::CSSParser):
        (CSSParser::setupParser):
        (CSSParser::parseSheet):
        (CSSParser::parseRule):
        (CSSParser::parseValue):
        (CSSParser::parseColor):
        (CSSParser::parseDeclaration):
        * khtml/css/cssparser.h:
        * khtml/ecma/kjs_html.cpp:
        (KJS::Context2DFunction::tryCall):

        * kwq/KWQColor.h:
        (QColor::alpha):
Added alpha() function to QColor, use instead of quirky
qAlpha() global function.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7144 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/WebCore.pbproj/project.pbxproj
WebCore/khtml/css/cssparser.cpp
WebCore/khtml/css/cssparser.h
WebCore/khtml/ecma/kjs_html.cpp
WebCore/kwq/KWQColor.h