diff options
author | fmalita <fmalita@chromium.org> | 2016-08-17 15:08:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-17 15:08:48 -0700 |
commit | be49378e9294f8e6026a359fbe4b040479e27326 (patch) | |
tree | 124e24084130c8ee31961ac12ed2155a4b536edf /experimental/svg | |
parent | 70f5251cc59191040a14cd0f1567aa2129e1f7c6 (diff) |
[SVGDom] Fix <ellipse> positioning
R=robertphillips@google.com,stephana@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2253283002
Review-Url: https://codereview.chromium.org/2253283002
Diffstat (limited to 'experimental/svg')
-rw-r--r-- | experimental/svg/model/SkSVGEllipse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/svg/model/SkSVGEllipse.cpp b/experimental/svg/model/SkSVGEllipse.cpp index a70a8e019c..f7461b8cd7 100644 --- a/experimental/svg/model/SkSVGEllipse.cpp +++ b/experimental/svg/model/SkSVGEllipse.cpp @@ -63,6 +63,6 @@ void SkSVGEllipse::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, const auto ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); if (rx > 0 && ry > 0) { - canvas->drawOval(SkRect::MakeXYWH(cx - rx / 2, cy - ry / 2, rx * 2, ry * 2), paint); + canvas->drawOval(SkRect::MakeXYWH(cx - rx, cy - ry, rx * 2, ry * 2), paint); } } |