blob: 4935d6afcf1afdb25097d3650b0b01a00e891764 [file] [log] [blame]
fmalita6ceef3d2016-07-26 18:46:34 -07001/*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkSVGAttribute.h"
fmalita6ceef3d2016-07-26 18:46:34 -07009
fmalita2d961e02016-08-11 09:16:29 -070010SkSVGPresentationAttributes SkSVGPresentationAttributes::MakeInitial() {
11 SkSVGPresentationAttributes result;
fmalita6ceef3d2016-07-26 18:46:34 -070012
fmalita2d961e02016-08-11 09:16:29 -070013 result.fFill.set(SkSVGPaint(SkSVGColorType(SK_ColorBLACK)));
14 result.fFillOpacity.set(SkSVGNumberType(1));
Florin Malitae932d4b2016-12-01 13:35:11 -050015 result.fFillRule.set(SkSVGFillRule(SkSVGFillRule::Type::kNonZero));
fmalita6ceef3d2016-07-26 18:46:34 -070016
fmalita2d961e02016-08-11 09:16:29 -070017 result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone));
18 result.fStrokeLineCap.set(SkSVGLineCap(SkSVGLineCap::Type::kButt));
19 result.fStrokeLineJoin.set(SkSVGLineJoin(SkSVGLineJoin::Type::kMiter));
20 result.fStrokeOpacity.set(SkSVGNumberType(1));
21 result.fStrokeWidth.set(SkSVGLength(1));
fmalita6ceef3d2016-07-26 18:46:34 -070022
fmalita2d961e02016-08-11 09:16:29 -070023 return result;
fmalita6ceef3d2016-07-26 18:46:34 -070024}