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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableShadow.h

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 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
Index: third_party/WebKit/Source/core/animation/animatable/AnimatableShadow.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableShadow.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableShadow.h
index 20e08039cf2e36ce17f71c41436e91af4f3b58a5..c382613676e04271b36e3e2b1a8e9a106ebdae3c 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableShadow.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableShadow.h
@@ -39,26 +39,18 @@ namespace blink {
class AnimatableShadow final : public AnimatableValue {
public:
~AnimatableShadow() override {}
- static PassRefPtr<AnimatableShadow> create(PassRefPtr<ShadowList> shadowList,
- const Color& currentColor) {
- return adoptRef(new AnimatableShadow(std::move(shadowList), currentColor));
+ static PassRefPtr<AnimatableShadow> create(
+ PassRefPtr<ShadowList> shadowList) {
+ return adoptRef(new AnimatableShadow(std::move(shadowList)));
}
- ShadowList* getShadowList() const { return m_shadowList.get(); }
-
- protected:
- PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*,
- double fraction) const override;
- bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- explicit AnimatableShadow(PassRefPtr<ShadowList> shadowList,
- const Color& currentColor)
- : m_shadowList(shadowList), m_currentColor(currentColor) {}
+ explicit AnimatableShadow(PassRefPtr<ShadowList> shadowList)
+ : m_shadowList(shadowList) {}
AnimatableType type() const override { return TypeShadow; }
bool equalTo(const AnimatableValue*) const override;
const RefPtr<ShadowList> m_shadowList;
- const Color m_currentColor;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableShadow, isShadow());

Powered by Google App Engine
This is Rietveld 408576698