diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/animation/css_default_interpolation_type.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/animation/css_default_interpolation_type.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/animation/css_default_interpolation_type.h b/chromium/third_party/blink/renderer/core/animation/css_default_interpolation_type.h index 941b2cae903..501fc9c4f09 100644 --- a/chromium/third_party/blink/renderer/core/animation/css_default_interpolation_type.h +++ b/chromium/third_party/blink/renderer/core/animation/css_default_interpolation_type.h @@ -30,7 +30,15 @@ class CORE_EXPORT CSSDefaultNonInterpolableValue : public NonInterpolableValue { Persistent<const CSSValue> css_value_; }; -DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(CSSDefaultNonInterpolableValue); +template <> +struct DowncastTraits<CSSDefaultNonInterpolableValue> { + static bool AllowFrom(const NonInterpolableValue* value) { + return value && AllowFrom(*value); + } + static bool AllowFrom(const NonInterpolableValue& value) { + return value.GetType() == CSSDefaultNonInterpolableValue::static_type_; + } +}; // Never supports pairwise conversion while always supporting single conversion. // A catch all default for CSSValue interpolation. |