[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

oliver at apple.com oliver at apple.com
Thu Apr 8 01:11:16 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit a6dcfd55236524d1fc10b75020d886e9283ef523
Author: oliver at apple.com <oliver at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sun Jan 17 02:31:22 2010 +0000

    2010-01-16  Oliver Hunt  <oliver at apple.com>
    
            Reviewed by Nikolas Zimmermann.
    
            SVG Markers are getting culled incorrectly
            https://bugs.webkit.org/show_bug.cgi?id=33767
    
            Use applyTransformToPaintInfo to transform the paintInfo, otherwise
            the paint rect is not updated leading to incorrect culling.
    
            * svg/graphics/SVGResourceMarker.cpp:
            (WebCore::SVGResourceMarker::draw):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53370 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 7307b16..9f8522c 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2010-01-16  Oliver Hunt  <oliver at apple.com>
+
+        Reviewed by Nikolas Zimmermann.
+
+        SVG Markers are getting culled incorrectly
+        https://bugs.webkit.org/show_bug.cgi?id=33767
+
+        Use applyTransformToPaintInfo to transform the paintInfo, otherwise
+        the paint rect is not updated leading to incorrect culling.
+
+        * svg/graphics/SVGResourceMarker.cpp:
+        (WebCore::SVGResourceMarker::draw):
+
 2010-01-15  John Sullivan  <sullivan at apple.com>
 
         https://bugs.webkit.org/show_bug.cgi?id=33751 and <rdar://problem/7538330>
diff --git a/WebCore/svg/graphics/SVGResourceMarker.cpp b/WebCore/svg/graphics/SVGResourceMarker.cpp
index ad29785..955c048 100644
--- a/WebCore/svg/graphics/SVGResourceMarker.cpp
+++ b/WebCore/svg/graphics/SVGResourceMarker.cpp
@@ -72,13 +72,13 @@ void SVGResourceMarker::draw(RenderObject::PaintInfo& paintInfo, const Transform
 
     currentlyDrawingMarkers.add(this);
     ASSERT(!m_renderer->drawsContents());
-
-    paintInfo.context->save();
-    paintInfo.context->concatCTM(transform);
+    RenderObject::PaintInfo info(paintInfo);
+    info.context->save();
+    applyTransformToPaintInfo(info, transform);
     m_renderer->setDrawsContents(true);
-    m_renderer->paint(paintInfo, 0, 0);
+    m_renderer->paint(info, 0, 0);
     m_renderer->setDrawsContents(false);
-    paintInfo.context->restore();
+    info.context->restore();
 
     currentlyDrawingMarkers.remove(this);
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list