summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 23:09:55 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 23:09:55 +0000
commite8c63e50dd64e8037fcd46e3e0fb6db1d08489ad (patch)
tree167de4ffa85decc005669298ed0e5e843fade44f /webkit/port
parentfaeea9b136c583ed39da832e3fdb793a5faa1507 (diff)
downloadchromium_src-e8c63e50dd64e8037fcd46e3e0fb6db1d08489ad.zip
chromium_src-e8c63e50dd64e8037fcd46e3e0fb6db1d08489ad.tar.gz
chromium_src-e8c63e50dd64e8037fcd46e3e0fb6db1d08489ad.tar.bz2
Avoid double-stroking paths.
The tests being rebaselined are those rebased post-merge (hence they included the problem). Review URL: http://codereview.chromium.org/7991 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp b/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp
index 4acd0f9..be2a4e99 100644
--- a/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp
+++ b/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp
@@ -50,6 +50,13 @@ void SVGPaintServer::draw(GraphicsContext*& context, const RenderObject* object,
void SVGPaintServer::teardown(GraphicsContext*& context, const RenderObject*, SVGPaintTargetType, bool isPaintingText) const
{
+ // WebKit implicitly expects us to reset the path.
+ // For example in fillAndStrokePath() of RenderPath.cpp the path is
+ // added back to the context after filling. This is because internally it
+ // calls CGContextFillPath() which closes the path.
+ context->beginPath();
+ context->platformContext()->setGradient(NULL);
+ context->platformContext()->setPattern(NULL);
}
void SVGPaintServer::renderPath(GraphicsContext*& context, const RenderObject* object, SVGPaintTargetType type) const