2006-04-09 Rob Buis <buis@kde.org>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Apr 2006 22:00:40 +0000 (22:00 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Apr 2006 22:00:40 +0000 (22:00 +0000)
        Reviewed by eseidel.  Landed by eseidel.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6027:
        Dirty rect invalidation issues in mozilla sample

        Make sure the paths calculate the new bounding box and not
        use the cached bbox.

        No automated test case possible.

        * kcanvas/RenderPath.cpp:
        (WebCore::RenderPath::setPath):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13747 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/kcanvas/RenderPath.cpp

index 6c5f998408e84ac389354e113d922a61862c38ae..ca1dd0c40dd9a2f8d0dbd7fc0314fef30075ecd5 100644 (file)
@@ -1,3 +1,18 @@
+2006-04-09  Rob Buis  <buis@kde.org>
+
+        Reviewed by eseidel.  Landed by eseidel.
+
+        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6027:
+        Dirty rect invalidation issues in mozilla sample
+
+        Make sure the paths calculate the new bounding box and not
+        use the cached bbox.
+
+        No automated test case possible.
+
+        * kcanvas/RenderPath.cpp:
+        (WebCore::RenderPath::setPath):
+
 2006-04-09  Rob Buis  <buis@kde.org>
 
         Reviewed by darin.  Landed by eseidel.
index ab8a9e86387cc9e9715ba7ddfa8b2ca7969955fb..c60804c55bf3e785f5bdc972a5e47bcbeb070e4f 100644 (file)
@@ -132,6 +132,8 @@ FloatRect RenderPath::relativeBBox(bool includeStroke) const
 void RenderPath::setPath(KCanvasPath* newPath)
 {
     d->path = newPath;
+    d->strokeBbox = FloatRect();
+    d->fillBBox = FloatRect();
 }
 
 KCanvasPath* RenderPath::path() const