2010-04-26 Zoltan Herczeg <zherczeg@webkit.org>
Reviewed by Dirk Schulze.
Call setStrokeStyle in applyStrokeStyleToContext
https://bugs.webkit.org/show_bug.cgi?id=37849
Not all platforms set the stroke style to solid if they
get an empty line dash array. Some just ignore the operation.
* rendering/SVGRenderSupport.cpp:
(WebCore::applyStrokeStyleToContext):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 9f4eff5..4483f88 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2010-04-26 Zoltan Herczeg <zherczeg@webkit.org>
+
+ Reviewed by Dirk Schulze.
+
+ Call setStrokeStyle in applyStrokeStyleToContext
+ https://bugs.webkit.org/show_bug.cgi?id=37849
+
+ Not all platforms set the stroke style to solid if they
+ get an empty line dash array. Some just ignore the operation.
+
+ * rendering/SVGRenderSupport.cpp:
+ (WebCore::applyStrokeStyleToContext):
+
2010-04-23 Ilya Tikhonovsky <loislo@chromium.org>
Reviewed by Pavel Feldman.
diff --git a/WebCore/rendering/SVGRenderSupport.cpp b/WebCore/rendering/SVGRenderSupport.cpp
index ef80ea6..2600512 100644
--- a/WebCore/rendering/SVGRenderSupport.cpp
+++ b/WebCore/rendering/SVGRenderSupport.cpp
@@ -399,7 +399,10 @@
const DashArray& dashes = dashArrayFromRenderingStyle(object->style(), object->document()->documentElement()->renderStyle());
float dashOffset = SVGRenderStyle::cssPrimitiveToLength(object, style->svgStyle()->strokeDashOffset(), 0.0f);
- context->setLineDash(dashes, dashOffset);
+ if (dashes.isEmpty())
+ context->setStrokeStyle(SolidStroke);
+ else
+ context->setLineDash(dashes, dashOffset);
}
const RenderObject* findTextRootObject(const RenderObject* start)