| Index: third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp
|
| index 1d35a17c113f615aabba54680412d40dd6418061..a1216f52b1544f6e6a910796069551ca8eebb482 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp
|
| +++ b/third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp
|
| @@ -17,6 +17,14 @@ CSSAngleValue* CSSAngleValue::create(double value, const String& unit) {
|
| return new CSSAngleValue(value, primitiveUnit);
|
| }
|
|
|
| +CSSAngleValue* CSSAngleValue::fromCSSValue(const CSSPrimitiveValue& value) {
|
| + DCHECK(value.isAngle());
|
| + if (value.isCalculated())
|
| + return nullptr;
|
| + return new CSSAngleValue(value.getDoubleValue(),
|
| + value.typeWithCalcResolved());
|
| +}
|
| +
|
| double CSSAngleValue::degrees() const {
|
| switch (m_unit) {
|
| case CSSPrimitiveValue::UnitType::Degrees:
|
|
|