| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NonInterpolableValue_h | 5 #ifndef NonInterpolableValue_h |
| 6 #define NonInterpolableValue_h | 6 #define NonInterpolableValue_h |
| 7 | 7 |
| 8 #include "wtf/RefCounted.h" | 8 #include "platform/wtf/RefCounted.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // Represents components of a PropertySpecificKeyframe's value that either do | 12 // Represents components of a PropertySpecificKeyframe's value that either do |
| 13 // not change or 50% flip when interpolating with an adjacent value. | 13 // not change or 50% flip when interpolating with an adjacent value. |
| 14 class NonInterpolableValue : public RefCounted<NonInterpolableValue> { | 14 class NonInterpolableValue : public RefCounted<NonInterpolableValue> { |
| 15 public: | 15 public: |
| 16 virtual ~NonInterpolableValue() {} | 16 virtual ~NonInterpolableValue() {} |
| 17 | 17 |
| 18 typedef const void* Type; | 18 typedef const void* Type; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 #define DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(T) \ | 32 #define DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(T) \ |
| 33 inline bool is##T(const NonInterpolableValue* value) { \ | 33 inline bool is##T(const NonInterpolableValue* value) { \ |
| 34 return !value || value->getType() == T::staticType; \ | 34 return !value || value->getType() == T::staticType; \ |
| 35 } \ | 35 } \ |
| 36 DEFINE_TYPE_CASTS(T, NonInterpolableValue, value, is##T(value), \ | 36 DEFINE_TYPE_CASTS(T, NonInterpolableValue, value, is##T(value), \ |
| 37 is##T(&value)); | 37 is##T(&value)); |
| 38 | 38 |
| 39 } // namespace blink | 39 } // namespace blink |
| 40 | 40 |
| 41 #endif // NonInterpolableValue_h | 41 #endif // NonInterpolableValue_h |
| OLD | NEW |