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

alex at webkit.org alex at webkit.org
Wed Dec 22 14:06:18 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 65f60cf01d38c352580fbe900044024b9feee598
Author: alex at webkit.org <alex at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Oct 4 16:25:31 2010 +0000

    2010-10-04  Alejandro G. Castro  <alex at igalia.com>
    
            Reviewed by Martin Robinson.
    
            [cairo] Context shadow modifies the data of the surface without
            flushing and marking as dirty
            https://bugs.webkit.org/show_bug.cgi?id=47079
    
            Added the cairo_surface_flush and cairo_surface_mark_dirty before
            and after modifying the image pixels directly.
    
            * platform/graphics/cairo/ContextShadowCairo.cpp:
            (WebCore::ContextShadow::endShadowLayer):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69018 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 4a5067b..6597a38 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,5 +1,19 @@
 2010-10-04  Alejandro G. Castro  <alex at igalia.com>
 
+        Reviewed by Martin Robinson.
+
+        [cairo] Context shadow modifies the data of the surface without
+        flushing and marking as dirty
+        https://bugs.webkit.org/show_bug.cgi?id=47079
+
+        Added the cairo_surface_flush and cairo_surface_mark_dirty before
+        and after modifying the image pixels directly.
+
+        * platform/graphics/cairo/ContextShadowCairo.cpp:
+        (WebCore::ContextShadow::endShadowLayer):
+
+2010-10-04  Alejandro G. Castro  <alex at igalia.com>
+
         Reviewed by Xan Lopez.
 
         Crashed caused by missing OwnPtrCairo include, for more
diff --git a/WebCore/platform/graphics/cairo/ContextShadowCairo.cpp b/WebCore/platform/graphics/cairo/ContextShadowCairo.cpp
index 4b94cb3..81615bd 100644
--- a/WebCore/platform/graphics/cairo/ContextShadowCairo.cpp
+++ b/WebCore/platform/graphics/cairo/ContextShadowCairo.cpp
@@ -105,10 +105,13 @@ void ContextShadow::endShadowLayer(cairo_t* cr)
     cairo_destroy(m_layerContext);
     m_layerContext = 0;
 
-    if (m_type == BlurShadow)
+    if (m_type == BlurShadow) {
+        cairo_surface_flush(m_layerImage);
         blurLayerImage(cairo_image_surface_get_data(m_layerImage),
                        IntSize(cairo_image_surface_get_width(m_layerImage), cairo_image_surface_get_height(m_layerImage)),
                        cairo_image_surface_get_stride(m_layerImage));
+        cairo_surface_mark_dirty(m_layerImage);
+    }
 
     cairo_save(cr);
     setSourceRGBAFromColor(cr, m_color);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list