summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGLengthContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGLengthContext.cpp')
-rw-r--r--Source/WebCore/svg/SVGLengthContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/svg/SVGLengthContext.cpp b/Source/WebCore/svg/SVGLengthContext.cpp
index fe4b66994..1bd857b9d 100644
--- a/Source/WebCore/svg/SVGLengthContext.cpp
+++ b/Source/WebCore/svg/SVGLengthContext.cpp
@@ -91,7 +91,7 @@ float SVGLengthContext::valueForLength(const Length& length, SVGLengthMode mode)
{
if (length.isPercent())
return convertValueFromPercentageToUserUnits(length.value() / 100, mode, IGNORE_EXCEPTION);
- if (length.isAuto())
+ if (length.isAuto() || !length.isSpecified())
return 0;
FloatSize viewportSize;