2010-08-16 Andreas Kling <andreas.kling@nokia.com>
authorandreas.kling <andreas.kling@nokia.com>
Tue, 17 Aug 2010 01:09:46 +0000 (01:09 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Tue, 24 Aug 2010 12:42:58 +0000 (14:42 +0200)
commitaa4d1183733f4669dcf3ef89b48ae01b2fbc3fa0
tree75b458cb7bc6dcb142ecb508b93da39766fc7519
parent1a184f3f6e088a4d5e4afd5ed71d3cb8d07a5a53
2010-08-16  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        CSS: Add fast-path for rgba() color parsing
        https://bugs.webkit.org/show_bug.cgi?id=42965

        Test: fast/canvas/rgba-parsing.html

        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseColor): Extended with support for rgba().
        (WebCore::parseAlphaValue): Added, parses an alpha value using
        WTF::strtod() (if necessary) and clamps between 0 and 1.
        (WebCore::isTenthAlpha):
2010-08-16  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        CSS: Add fast-path for rgba() color parsing
        https://bugs.webkit.org/show_bug.cgi?id=42965

        Add a test of rgba() color parsing.

        * fast/canvas/rgba-parsing-expected.txt: Added.
        * fast/canvas/rgba-parsing.html: Added.
        * fast/canvas/script-tests/rgba-parsing.js: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
WebCore/ChangeLog
WebCore/css/CSSParser.cpp