diff options
author | fmalita <fmalita@chromium.org> | 2016-08-11 09:16:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-11 09:16:29 -0700 |
commit | 2d961e086bb40b371b1a667536fa089794847368 (patch) | |
tree | 89c6986af025e9d5c87791e4977838331bbd575b /experimental/svg/model/SkSVGShape.cpp | |
parent | 90b5cc31f373e831c942bfd3113b44486546846b (diff) |
[SVGDom] Add more presentation attributes.
Implement proper presentation attribute inheritance, and add
support for
* fill-opacity
* stroke-linecap
* stroke-linejoin
* stroke-opacity
* stroke-width
R=robertphillips@google.com,stephana@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2234153002
Review-Url: https://codereview.chromium.org/2234153002
Diffstat (limited to 'experimental/svg/model/SkSVGShape.cpp')
-rw-r--r-- | experimental/svg/model/SkSVGShape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/svg/model/SkSVGShape.cpp b/experimental/svg/model/SkSVGShape.cpp index 516d4a2925..38af4c9303 100644 --- a/experimental/svg/model/SkSVGShape.cpp +++ b/experimental/svg/model/SkSVGShape.cpp @@ -12,11 +12,11 @@ SkSVGShape::SkSVGShape(SkSVGTag t) : INHERITED(t) {} void SkSVGShape::onRender(const SkSVGRenderContext& ctx) const { // TODO: this approach forces duplicate geometry resolution in onDraw(); refactor to avoid. - if (const SkPaint* fillPaint = ctx.presentationContext().fillPaint()) { + if (const SkPaint* fillPaint = ctx.fillPaint()) { this->onDraw(ctx.canvas(), ctx.lengthContext(), *fillPaint); } - if (const SkPaint* strokePaint = ctx.presentationContext().strokePaint()) { + if (const SkPaint* strokePaint = ctx.strokePaint()) { this->onDraw(ctx.canvas(), ctx.lengthContext(), *strokePaint); } } |