Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h

Issue 2042213002: Remove unused code in DeferredLegacyStyleInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h
diff --git a/third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h b/third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h
index 8d818767fcc98f9be5c1cb449ece590bffaa9b1f..5f7357922e9d0f998eabc6a252198901e9d25948 100644
--- a/third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h
+++ b/third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h
@@ -6,9 +6,7 @@
#define DeferredLegacyStyleInterpolation_h
#include "core/CoreExport.h"
-#include "core/animation/LegacyStyleInterpolation.h"
-#include "core/animation/StyleInterpolation.h"
-#include "core/css/CSSValue.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -21,18 +19,14 @@ class CSSPrimitiveValue;
class CSSQuadValue;
class CSSShadowValue;
class CSSSVGDocumentValue;
+class CSSValue;
class CSSValueList;
class CSSValuePair;
-class CORE_EXPORT DeferredLegacyStyleInterpolation : public StyleInterpolation {
+// TODO(alancutter): Remove this once compositor keyframes are no longer snapshot during EffectInput::convert().
+class CORE_EXPORT DeferredLegacyStyleInterpolation {
public:
- static PassRefPtr<DeferredLegacyStyleInterpolation> create(CSSValue* start, CSSValue* end, CSSPropertyID id)
- {
- return adoptRef(new DeferredLegacyStyleInterpolation(start, end, id));
- }
-
- void apply(StyleResolverState&) const override;
-
+ STATIC_ONLY(DeferredLegacyStyleInterpolation);
static bool interpolationRequiresStyleResolve(const CSSValue&);
static bool interpolationRequiresStyleResolve(const CSSPrimitiveValue&);
static bool interpolationRequiresStyleResolve(const CSSImageValue&);
@@ -45,20 +39,6 @@ public:
static bool interpolationRequiresStyleResolve(const CSSBasicShapePolygonValue&);
static bool interpolationRequiresStyleResolve(const CSSBasicShapeInsetValue&);
static bool interpolationRequiresStyleResolve(const CSSQuadValue&);
-
-private:
- DeferredLegacyStyleInterpolation(CSSValue* start, CSSValue* end, CSSPropertyID id)
- : StyleInterpolation(InterpolableNumber::create(0), InterpolableNumber::create(1), id)
- , m_startCSSValue(start)
- , m_endCSSValue(end)
- , m_outdated(true)
- {
- }
-
- Persistent<CSSValue> m_startCSSValue;
- Persistent<CSSValue> m_endCSSValue;
- mutable RefPtr<LegacyStyleInterpolation> m_innerInterpolation;
- mutable bool m_outdated;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698