[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

andreas.kling at nokia.com andreas.kling at nokia.com
Wed Dec 22 11:11:54 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 72e92a8e0b487711936760a56f0dc688af5d4ed8
Author: andreas.kling at nokia.com <andreas.kling at nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jul 14 23:27:59 2010 +0000

    2010-07-14  Andreas Kling  <andreas.kling at nokia.com>
    
            Reviewed by Darin Adler.
    
            Canvas: Don't add shadow rect to dirty region when shadow alpha is 0
            https://bugs.webkit.org/show_bug.cgi?id=42300
    
            * html/canvas/CanvasRenderingContext2D.cpp:
            (WebCore::CanvasRenderingContext2D::willDraw):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63370 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 77364a7..b9a999b 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,13 @@
+2010-07-14  Andreas Kling  <andreas.kling at nokia.com>
+
+        Reviewed by Darin Adler.
+
+        Canvas: Don't add shadow rect to dirty region when shadow alpha is 0
+        https://bugs.webkit.org/show_bug.cgi?id=42300
+
+        * html/canvas/CanvasRenderingContext2D.cpp:
+        (WebCore::CanvasRenderingContext2D::willDraw):
+
 2010-07-14  Kevin Ollivier  <kevino at theolliviers.com>
 
         [CURL] Build fix after request -> firstRequest rename.
diff --git a/WebCore/html/canvas/CanvasRenderingContext2D.cpp b/WebCore/html/canvas/CanvasRenderingContext2D.cpp
index 451dc62..9748ff5 100644
--- a/WebCore/html/canvas/CanvasRenderingContext2D.cpp
+++ b/WebCore/html/canvas/CanvasRenderingContext2D.cpp
@@ -1375,7 +1375,7 @@ void CanvasRenderingContext2D::willDraw(const FloatRect& r, unsigned options)
         dirtyRect = ctm.mapRect(r);
     }
     
-    if (options & CanvasWillDrawApplyShadow) {
+    if (options & CanvasWillDrawApplyShadow && Color(state().m_shadowColor).alpha()) {
         // The shadow gets applied after transformation
         FloatRect shadowRect(dirtyRect);
         shadowRect.move(state().m_shadowOffset);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list