| Index: Source/core/svg/SVGSVGElement.cpp
|
| diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp
|
| index d3924445a7863e4ee0a37735d14486443e53d536..6c82f9dfa8c2fc7f99652ab898693e582c88786c 100644
|
| --- a/Source/core/svg/SVGSVGElement.cpp
|
| +++ b/Source/core/svg/SVGSVGElement.cpp
|
| @@ -647,17 +647,17 @@ FloatSize SVGSVGElement::currentViewportSize() const
|
|
|
| bool SVGSVGElement::hasIntrinsicWidth() const
|
| {
|
| - return width()->currentValue()->unitType() != LengthTypePercentage;
|
| + return width()->currentValue()->primitiveType() != CSSPrimitiveValue::CSS_PERCENTAGE;
|
| }
|
|
|
| bool SVGSVGElement::hasIntrinsicHeight() const
|
| {
|
| - return height()->currentValue()->unitType() != LengthTypePercentage;
|
| + return height()->currentValue()->primitiveType() != CSSPrimitiveValue::CSS_PERCENTAGE;
|
| }
|
|
|
| Length SVGSVGElement::intrinsicWidth() const
|
| {
|
| - if (width()->currentValue()->unitType() == LengthTypePercentage)
|
| + if (width()->currentValue()->primitiveType() == CSSPrimitiveValue::CSS_PERCENTAGE)
|
| return Length(0, Fixed);
|
|
|
| SVGLengthContext lengthContext(this);
|
| @@ -666,7 +666,7 @@ Length SVGSVGElement::intrinsicWidth() const
|
|
|
| Length SVGSVGElement::intrinsicHeight() const
|
| {
|
| - if (height()->currentValue()->unitType() == LengthTypePercentage)
|
| + if (height()->currentValue()->primitiveType() == CSSPrimitiveValue::CSS_PERCENTAGE)
|
| return Length(0, Fixed);
|
|
|
| SVGLengthContext lengthContext(this);
|
|
|