Index: Source/core/svg/SVGLengthContext.cpp |
diff --git a/Source/core/svg/SVGLengthContext.cpp b/Source/core/svg/SVGLengthContext.cpp |
index 263cc273e9b549e9c3353c9f86da17c848d34863..43cbaabae2207d1edfb2362fa1d84ac453220daf 100644 |
--- a/Source/core/svg/SVGLengthContext.cpp |
+++ b/Source/core/svg/SVGLengthContext.cpp |
@@ -109,7 +109,7 @@ SVGLengthContext::SVGLengthContext(const SVGElement* context) |
FloatRect SVGLengthContext::resolveRectangle(const SVGElement* context, SVGUnitTypes::SVGUnitType type, const FloatRect& viewport, const SVGLength& x, const SVGLength& y, const SVGLength& width, const SVGLength& height) |
{ |
ASSERT(type != SVGUnitTypes::SVG_UNIT_TYPE_UNKNOWN); |
- if (type != SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE && !viewport.isEmpty()) { |
+ if (type != SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) { |
const FloatSize& viewportSize = viewport.size(); |
return FloatRect( |
convertValueFromPercentageToUserUnits(x, viewportSize) + viewport.x(), |