2010-11-23 Helder Correia <helder@sencha.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Nov 2010 08:00:30 +0000 (08:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Nov 2010 08:00:30 +0000 (08:00 +0000)
commit3088e019d7101cf58357580d9fb647913dc621df
tree0ece598aabaf9d65b9f3f05b7fc2e204cc26f469
parent7d474eb31fa182510b229c71ae4878ff03783cdc
2010-11-23  Helder Correia  <helder@sencha.com>

        Reviewed by Ariya Hidayat.

        [Qt] Drawing an image on canvas with shadowBlur draws a solid shadow
        https://bugs.webkit.org/show_bug.cgi?id=49878

        New test checking solid and blurry shadow on images drawn on canvas.

        * fast/canvas/canvas-drawImage-shadow-expected.txt: Added.
        * fast/canvas/canvas-drawImage-shadow.html: Added.
        * fast/canvas/script-tests/canvas-drawImage-shadow.js: Added.
2010-11-23  Helder Correia  <helder@sencha.com>

        Reviewed by Ariya Hidayat.

        [Qt] Drawing an image on canvas with shadowBlur draws a solid shadow
        https://bugs.webkit.org/show_bug.cgi?id=49878

        Add support for blurry shadows when drawing images on canvas.

        Test: fast/canvas/canvas-drawImage-shadow.html

        * platform/graphics/qt/ContextShadowQt.cpp:
        (WebCore::ContextShadow::endShadowLayer): Make composition work for solid shadow too.
        * platform/graphics/qt/ImageQt.cpp:
        (WebCore::BitmapImage::draw): Remove old shadow code and introduce ContextShadow.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/canvas-drawImage-shadow-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/canvas-drawImage-shadow.html [new file with mode: 0644]
LayoutTests/fast/canvas/script-tests/canvas-drawImage-shadow.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/graphics/qt/ContextShadowQt.cpp
WebCore/platform/graphics/qt/ImageQt.cpp