Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1305)

Unified Diff: third_party/WebKit/Source/core/svg/SVGRectElement.cpp

Issue 2019993003: Set "auto" as default for rx and ry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added CSS Parsing Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/style/SVGComputedStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGRectElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGRectElement.cpp b/third_party/WebKit/Source/core/svg/SVGRectElement.cpp
index 13c82aefe2374fb1c6505eed12c06fe2b9dce43d..ea8c2b856b6ce3de46ea20e95e19d59ba1130a75 100644
--- a/third_party/WebKit/Source/core/svg/SVGRectElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGRectElement.cpp
@@ -81,9 +81,9 @@ Path SVGRectElement::asPath() const
bool hasRx = rx > 0;
bool hasRy = ry > 0;
if (hasRx || hasRy) {
- if (!hasRx)
+ if (svgStyle.rx().isAuto())
rx = ry;
- else if (!hasRy)
+ else if (svgStyle.ry().isAuto())
ry = rx;
path.addRoundedRect(FloatRect(x, y, width, height), FloatSize(rx, ry));
« no previous file with comments | « third_party/WebKit/Source/core/style/SVGComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698