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

Unified Diff: Source/core/animation/interpolation/LegacyStyleInterpolation.h

Issue 408443004: Web Animations: Remove confusing interpolation subdirectory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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: Source/core/animation/interpolation/LegacyStyleInterpolation.h
diff --git a/Source/core/animation/interpolation/LegacyStyleInterpolation.h b/Source/core/animation/interpolation/LegacyStyleInterpolation.h
deleted file mode 100644
index 5e15a5af596d9c1363d2c7250736175cc4bbf60f..0000000000000000000000000000000000000000
--- a/Source/core/animation/interpolation/LegacyStyleInterpolation.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef LegacyStyleInterpolation_h
-#define LegacyStyleInterpolation_h
-
-#include "core/animation/interpolation/StyleInterpolation.h"
-#include "core/css/resolver/AnimatedStyleBuilder.h"
-
-namespace blink {
-
-class LegacyStyleInterpolation : public StyleInterpolation {
-public:
- static PassRefPtrWillBeRawPtr<LegacyStyleInterpolation> create(PassRefPtrWillBeRawPtr<AnimatableValue> start, PassRefPtrWillBeRawPtr<AnimatableValue> end, CSSPropertyID id)
- {
- return adoptRefWillBeNoop(new LegacyStyleInterpolation(InterpolableAnimatableValue::create(start), InterpolableAnimatableValue::create(end), id));
- }
-
- virtual void apply(StyleResolverState& state) const OVERRIDE
- {
- AnimatedStyleBuilder::applyProperty(m_id, state, currentValue().get());
- }
-
- virtual bool isLegacyStyleInterpolation() const OVERRIDE FINAL { return true; }
- PassRefPtrWillBeRawPtr<AnimatableValue> currentValue() const
- {
- return toInterpolableAnimatableValue(m_cachedValue.get())->value();
- }
-
- virtual void trace(Visitor* visitor) OVERRIDE
- {
- StyleInterpolation::trace(visitor);
- }
-
-private:
- LegacyStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
- : StyleInterpolation(start, end, id)
- {
- }
-};
-
-DEFINE_TYPE_CASTS(LegacyStyleInterpolation, Interpolation, value, value->isLegacyStyleInterpolation(), value.isLegacyStyleInterpolation());
-
-}
-
-#endif
« no previous file with comments | « Source/core/animation/interpolation/Interpolation.cpp ('k') | Source/core/animation/interpolation/LengthStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698