aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGAttribute.cpp
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-10-13 18:18:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-13 22:53:32 +0000
commite1dadd74f8a554ead3975431d6c09eb25749c904 (patch)
tree4ef0718d6809b4217d41423dc93d3832cbc5c0f0 /experimental/svg/model/SkSVGAttribute.cpp
parent7a0ebfc033463907e2088401972d14ea8589cdb5 (diff)
[SVGDom] Add 'stroke-dashoffset' support
https://www.w3.org/TR/SVG/painting.html#StrokeDashoffsetProperty Change-Id: Ia25d0048a56ac3835cabcb4e1794d91667367d7c Reviewed-on: https://skia-review.googlesource.com/59820 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/svg/model/SkSVGAttribute.cpp')
-rw-r--r--experimental/svg/model/SkSVGAttribute.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGAttribute.cpp b/experimental/svg/model/SkSVGAttribute.cpp
index 41527f7497..31c6c28bb2 100644
--- a/experimental/svg/model/SkSVGAttribute.cpp
+++ b/experimental/svg/model/SkSVGAttribute.cpp
@@ -17,6 +17,7 @@ SkSVGPresentationAttributes SkSVGPresentationAttributes::MakeInitial() {
result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone));
result.fStrokeDashArray.set(SkSVGDashArray(SkSVGDashArray::Type::kNone));
+ result.fStrokeDashOffset.set(SkSVGLength(0));
result.fStrokeLineCap.set(SkSVGLineCap(SkSVGLineCap::Type::kButt));
result.fStrokeLineJoin.set(SkSVGLineJoin(SkSVGLineJoin::Type::kMiter));
result.fStrokeMiterLimit.set(SkSVGNumberType(4));