Index: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
index fce14cf46b7e1a0a43f5fcb5ced6709fae88b061..ef466e2f6b1f479297b556a036bde23603c6f1db 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
@@ -634,17 +634,17 @@ FloatSize SVGSVGElement::currentViewportSize() const |
bool SVGSVGElement::hasIntrinsicWidth() const |
{ |
- return width()->currentValue()->unitType() != LengthTypePercentage; |
+ return width()->currentValue()->typeWithCalcResolved() != CSSPrimitiveValue::UnitType::Percentage; |
} |
bool SVGSVGElement::hasIntrinsicHeight() const |
{ |
- return height()->currentValue()->unitType() != LengthTypePercentage; |
+ return height()->currentValue()->typeWithCalcResolved() != CSSPrimitiveValue::UnitType::Percentage; |
} |
Length SVGSVGElement::intrinsicWidth() const |
{ |
- if (width()->currentValue()->unitType() == LengthTypePercentage) |
+ if (width()->currentValue()->typeWithCalcResolved() == CSSPrimitiveValue::UnitType::Percentage) |
return Length(0, Fixed); |
SVGLengthContext lengthContext(this); |
@@ -653,7 +653,7 @@ Length SVGSVGElement::intrinsicWidth() const |
Length SVGSVGElement::intrinsicHeight() const |
{ |
- if (height()->currentValue()->unitType() == LengthTypePercentage) |
+ if (height()->currentValue()->typeWithCalcResolved() == CSSPrimitiveValue::UnitType::Percentage) |
return Length(0, Fixed); |
SVGLengthContext lengthContext(this); |