Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h |
| diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h |
| index a0c694e6b74dd6b92d2a4b438d94f508d3d8dbe2..ab683277c610681fdddbb27feb9fdd50369b0de5 100644 |
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h |
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h |
| @@ -164,7 +164,7 @@ class CORE_EXPORT CSSPrimitiveValue : public CSSValue { |
| return unit == UnitType::kDegrees || unit == UnitType::kRadians || |
| unit == UnitType::kGradians || unit == UnitType::kTurns; |
| } |
| - bool IsAngle() const { return IsAngle(GetType()); } |
| + bool IsAngle() const { return IsAngle(TypeWithCalcResolved()); } |
|
f(malita)
2017/04/10 14:16:26
All IsFoo() helpers seem to ignore calc values at
fs
2017/04/10 14:22:58
Hmm, IsLength, IsNumber and IsPercentage (the non-
|
| bool IsFontRelativeLength() const { |
| return GetType() == UnitType::kQuirkyEms || GetType() == UnitType::kEms || |
| GetType() == UnitType::kExs || GetType() == UnitType::kRems || |