From 58649ccc75c033ea4e0c9a664b4ed178816a50c6 Mon Sep 17 00:00:00 2001 From: fmalita Date: Fri, 29 Jul 2016 08:52:03 -0700 Subject: [SVGDom] Parse style attributes Dispatch style-encoded (style="foo: bar; ...") attributes via normal attribute setters. R=reed@google.com,robertphillips@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2193663002 Review-Url: https://codereview.chromium.org/2193663002 --- experimental/svg/model/SkSVGNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'experimental/svg/model/SkSVGNode.cpp') diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp index 2b891792fd..58e0ad4989 100644 --- a/experimental/svg/model/SkSVGNode.cpp +++ b/experimental/svg/model/SkSVGNode.cpp @@ -40,12 +40,12 @@ void SkSVGNode::setAttribute(SkSVGAttribute attr, const SkSVGValue& v) { void SkSVGNode::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) { switch (attr) { - case SkSVGAttribute::fill: + case SkSVGAttribute::kFill: if (const SkSVGColorValue* color = v.as()) { fPresentationAttributes.setFill(*color); } break; - case SkSVGAttribute::stroke: + case SkSVGAttribute::kStroke: if (const SkSVGColorValue* color = v.as()) { fPresentationAttributes.setStroke(*color); } -- cgit v1.2.3