Index: third_party/WebKit/Source/core/svg/SVGLengthTearOff.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h |
index 8714f7b55585c9583b62679225030f03d9f37db7..b7b7f756dbc7a4a9b3e55e2a01385ad7624b5800 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h |
+++ b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.h |
@@ -32,6 +32,7 @@ |
#define SVGLengthTearOff_h |
#include "bindings/core/v8/ScriptWrappable.h" |
+#include "core/css/CSSPrimitiveValue.h" |
#include "core/svg/SVGLength.h" |
#include "core/svg/properties/SVGPropertyTearOff.h" |
@@ -71,7 +72,7 @@ public: |
void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState&); |
void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&); |
- bool hasExposedLengthUnit() { return target()->unitType() <= LengthTypePC; } |
+ bool hasExposedLengthUnit() { return target()->typeWithCalcResolved() <= CSSPrimitiveValue::UnitType::UserUnits; } |
private: |
SVGLengthTearOff(PassRefPtrWillBeRawPtr<SVGLength>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = QualifiedName::null()); |