[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
This commit is contained in:
parent
70f5251cc5
commit
be49378e92
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user