2011-01-18  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Incorrect shadow alpha with semi-transparent solid fillStyle
        https://bugs.webkit.org/show_bug.cgi?id=52611

        This is related to bug 52559. The shadow color alpha must be multiplied
        by the context brush alpha.

        New test to ensure correct behavior of canvas with fillPath using a
        semi-transparent fillStyle color and a shadow.

        * fast/canvas/canvas-fillPath-alpha-shadow-expected.txt: Added.
        * fast/canvas/canvas-fillPath-alpha-shadow.html: Added.
        * fast/canvas/script-tests/canvas-fillPath-alpha-shadow.js: Added.
2011-01-18  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Incorrect shadow alpha with semi-transparent solid fillStyle
        https://bugs.webkit.org/show_bug.cgi?id=52611

        This is related to bug 52559. The shadow color alpha must be multiplied
        by the context brush alpha.

        Test: fast/canvas/canvas-fillPath-alpha-shadow.html

        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::fillPath):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/fast/canvas/canvas-fillPath-alpha-shadow.html b/LayoutTests/fast/canvas/canvas-fillPath-alpha-shadow.html
new file mode 100644
index 0000000..e3feb39
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-fillPath-alpha-shadow.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/canvas-fillPath-alpha-shadow.js"></script>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>