Chromium Code Reviews| Index: Source/core/animation/DeferredLegacyStyleInterpolation.h |
| diff --git a/Source/core/animation/DeferredLegacyStyleInterpolation.h b/Source/core/animation/DeferredLegacyStyleInterpolation.h |
| index 9f72bd71be0fe1aec041d49e9f08642c47e12847..d6b75bad1954864146842633c7efc7bc624e995e 100644 |
| --- a/Source/core/animation/DeferredLegacyStyleInterpolation.h |
| +++ b/Source/core/animation/DeferredLegacyStyleInterpolation.h |
| @@ -5,6 +5,7 @@ |
| #ifndef DeferredLegacyStyleInterpolation_h |
| #define DeferredLegacyStyleInterpolation_h |
| +#include "core/animation/LegacyStyleInterpolation.h" |
| #include "core/animation/StyleInterpolation.h" |
| #include "core/css/CSSValue.h" |
| @@ -36,18 +37,27 @@ public: |
| static bool interpolationRequiresStyleResolve(const CSSValueList&); |
| static bool interpolationRequiresStyleResolve(const CSSBasicShape&); |
| + void setOutdated(bool outdated) { m_outdated = outdated; } |
|
Timothy Loh
2015/01/20 05:29:32
Probably clearer if all of these don't take any ar
shend
2015/01/20 23:13:03
Done.
|
| + |
| + virtual bool isDeferredLegacyStyleInterpolation() const override final { return true; } |
| + |
| private: |
| DeferredLegacyStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWillBeRawPtr<CSSValue> end, CSSPropertyID id) |
| : StyleInterpolation(InterpolableNumber::create(0), InterpolableNumber::create(1), id) |
| , m_startCSSValue(start) |
| , m_endCSSValue(end) |
| + , m_outdated(true) |
| { |
| } |
| RefPtrWillBeMember<CSSValue> m_startCSSValue; |
| RefPtrWillBeMember<CSSValue> m_endCSSValue; |
| + mutable RefPtrWillBeMember<LegacyStyleInterpolation> m_innerInterpolation; |
| + mutable bool m_outdated; |
| }; |
| +DEFINE_TYPE_CASTS(DeferredLegacyStyleInterpolation, StyleInterpolation, value, value->isDeferredLegacyStyleInterpolation(), value.isDeferredLegacyStyleInterpolation()); |
| + |
| } |
| #endif |