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 740de4853716e003103065f2aa8baff19418ea55..a29487de259cfcc64f70b0f32599760a6c3fe218 100644 |
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h |
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h |
| @@ -321,6 +321,24 @@ using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray; |
| DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); |
| +template <> |
| +int CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const; |
| + |
| +template <> |
| +Length CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const; |
| + |
| +template <> |
| +unsigned CSSPrimitiveValue::computeLength( |
| + const CSSToLengthConversionData&) const; |
| + |
| +template <> |
| +short CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const; |
| + |
| +template <> |
| +float CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const; |
| + |
| +template <> |
| +double CSSPrimitiveValue::computeLength(const CSSToLengthConversionData&) const; |
|
rune
2017/04/05 10:54:39
Can you explain why these are necessary?
Daniel Bratell
2017/04/05 12:05:39
The computeLength functions have explicit speciali
rune
2017/04/05 19:40:22
I don't know enough about templates and compilers
|
| } // namespace blink |
| #endif // CSSPrimitiveValue_h |