aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGPath.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-07-29 08:52:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-29 08:52:03 -0700
commit58649ccc75c033ea4e0c9a664b4ed178816a50c6 (patch)
tree91117fb8be83c0ee4d07d79e5a150fa11b45e333 /experimental/svg/model/SkSVGPath.cpp
parent5abbb44f682038abe01b8ee63fb22439af861dda (diff)
[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
Diffstat (limited to 'experimental/svg/model/SkSVGPath.cpp')
-rw-r--r--experimental/svg/model/SkSVGPath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/svg/model/SkSVGPath.cpp b/experimental/svg/model/SkSVGPath.cpp
index ba5e3d62ba..7d905945bc 100644
--- a/experimental/svg/model/SkSVGPath.cpp
+++ b/experimental/svg/model/SkSVGPath.cpp
@@ -11,7 +11,7 @@
#include "SkSVGRenderContext.h"
#include "SkSVGValue.h"
-SkSVGPath::SkSVGPath() : INHERITED(SkSVGTag::path) { }
+SkSVGPath::SkSVGPath() : INHERITED(SkSVGTag::kPath) { }
void SkSVGPath::doRender(SkCanvas* canvas, const SkPaint* paint) const {
if (paint) {
@@ -26,7 +26,7 @@ void SkSVGPath::onRender(SkCanvas* canvas, const SkSVGRenderContext& ctx) const
void SkSVGPath::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) {
switch (attr) {
- case SkSVGAttribute::d:
+ case SkSVGAttribute::kD:
if (const auto* path = v.as<SkSVGPathValue>()) {
this->setPath(*path);
}