projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f5251
)
[SVGDom] Fix <ellipse> positioning
author
fmalita
<fmalita@chromium.org>
Wed, 17 Aug 2016 22:08:48 +0000
(15:08 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 17 Aug 2016 22:08:48 +0000
(15:08 -0700)
R=robertphillips@google.com,stephana@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2253283002
Review-Url: https://codereview.chromium.org/
2253283002
experimental/svg/model/SkSVGEllipse.cpp
patch
|
blob
|
history
diff --git
a/experimental/svg/model/SkSVGEllipse.cpp
b/experimental/svg/model/SkSVGEllipse.cpp
index a70a8e019cad3a780c01a538909548e7dde76932..f7461b8cd7fa306f608b5eb9c6657f5d677be9cf 100644
(file)
--- 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);
}
}