| Index: Source/core/svg/SVGLength.h
|
| diff --git a/Source/core/svg/SVGLength.h b/Source/core/svg/SVGLength.h
|
| index 41a3eb64256ffa16c811250e9208146563f79b51..6debe8dc28774de29e88b241e2afad4caf469eef 100644
|
| --- a/Source/core/svg/SVGLength.h
|
| +++ b/Source/core/svg/SVGLength.h
|
| @@ -23,13 +23,13 @@
|
|
|
| #include "bindings/core/v8/ExceptionMessages.h"
|
| #include "bindings/core/v8/ExceptionStatePlaceholder.h"
|
| +#include "core/css/CSSPrimitiveValue.h"
|
| #include "core/svg/SVGLengthContext.h"
|
| #include "core/svg/properties/SVGProperty.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| -class CSSPrimitiveValue;
|
| class ExceptionState;
|
| class QualifiedName;
|
|
|
| @@ -53,6 +53,12 @@ public:
|
| virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String&) const override;
|
|
|
| SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitType); }
|
| + CSSPrimitiveValue::UnitType cssUnitTypeQuirk() const
|
| + {
|
| + if (m_unitType == LengthTypeNumber)
|
| + return CSSPrimitiveValue::UnitType::CSS_PX;
|
| + return static_cast<CSSPrimitiveValue::UnitType>(m_unitType);
|
| + }
|
| void setUnitType(SVGLengthType);
|
| SVGLengthMode unitMode() const { return static_cast<SVGLengthMode>(m_unitMode); }
|
|
|
|
|