| Index: Source/core/rendering/svg/SVGPathData.cpp
|
| diff --git a/Source/core/rendering/svg/SVGPathData.cpp b/Source/core/rendering/svg/SVGPathData.cpp
|
| index af95a60187bfccb6e2762c9867bd92b32c78694e..0879b8b831ece367f6f7cfeb2fe3fe680a0d25bb 100644
|
| --- a/Source/core/rendering/svg/SVGPathData.cpp
|
| +++ b/Source/core/rendering/svg/SVGPathData.cpp
|
| @@ -124,8 +124,8 @@ static void updatePathFromRectElement(SVGElement* element, Path& path)
|
| return;
|
| float x = rect->x().value(lengthContext);
|
| float y = rect->y().value(lengthContext);
|
| - bool hasRx = rect->hasAttribute(SVGNames::rxAttr);
|
| - bool hasRy = rect->hasAttribute(SVGNames::ryAttr);
|
| + bool hasRx = rect->rx().value(lengthContext) > 0;
|
| + bool hasRy = rect->ry().value(lengthContext) > 0;
|
| if (hasRx || hasRy) {
|
| float rx = rect->rx().value(lengthContext);
|
| float ry = rect->ry().value(lengthContext);
|
|
|