blob: 9d6b193e043512ceaa989e4c9c0e9ceb0570d0c6 [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));
fmalita6ceef3d2016-07-26 18:46:34 -070015
fmalita2d961e02016-08-11 09:16:29 -070016 result.fStroke.set(SkSVGPaint(SkSVGPaint::Type::kNone));
17 result.fStrokeLineCap.set(SkSVGLineCap(SkSVGLineCap::Type::kButt));
18 result.fStrokeLineJoin.set(SkSVGLineJoin(SkSVGLineJoin::Type::kMiter));
19 result.fStrokeOpacity.set(SkSVGNumberType(1));
20 result.fStrokeWidth.set(SkSVGLength(1));
fmalita6ceef3d2016-07-26 18:46:34 -070021
fmalita2d961e02016-08-11 09:16:29 -070022 return result;
fmalita6ceef3d2016-07-26 18:46:34 -070023}