| Index: third_party/WebKit/Source/core/animation/InvalidatableStyleInterpolation.h
|
| diff --git a/third_party/WebKit/Source/core/animation/InvalidatableStyleInterpolation.h b/third_party/WebKit/Source/core/animation/InvalidatableStyleInterpolation.h
|
| deleted file mode 100644
|
| index e5ca3104f80d872ee4ab10aa122878c1dd57998e..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/core/animation/InvalidatableStyleInterpolation.h
|
| +++ /dev/null
|
| @@ -1,72 +0,0 @@
|
| -// Copyright 2015 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 InvalidatableStyleInterpolation_h
|
| -#define InvalidatableStyleInterpolation_h
|
| -
|
| -#include "core/animation/InterpolationType.h"
|
| -#include "core/animation/InterpolationValue.h"
|
| -#include "core/animation/PrimitiveInterpolation.h"
|
| -#include "core/animation/StyleInterpolation.h"
|
| -
|
| -namespace blink {
|
| -
|
| -// TODO(alancutter): This class will replace *StyleInterpolation, SVGInterpolation, Interpolation.
|
| -// For now it needs to distinguish itself during the refactor and temporarily has an ugly name.
|
| -class CORE_EXPORT InvalidatableStyleInterpolation : public Interpolation {
|
| -public:
|
| - static PassRefPtr<InvalidatableStyleInterpolation> create(
|
| - const Vector<const InterpolationType*>& InterpolationTypes,
|
| - const PropertySpecificKeyframe& startKeyframe,
|
| - const PropertySpecificKeyframe& endKeyframe)
|
| - {
|
| - return adoptRef(new InvalidatableStyleInterpolation(InterpolationTypes, startKeyframe, endKeyframe));
|
| - }
|
| -
|
| - PropertyHandle property() const final { return m_interpolationTypes.first()->property(); }
|
| - virtual void interpolate(int iteration, double fraction);
|
| - bool dependsOnUnderlyingValue() const;
|
| - virtual void apply(InterpolationEnvironment&) const { ASSERT_NOT_REACHED(); }
|
| - static void applyStack(const ActiveInterpolations&, InterpolationEnvironment&);
|
| -
|
| - virtual bool isInvalidatableStyleInterpolation() const { return true; }
|
| -
|
| -private:
|
| - InvalidatableStyleInterpolation(
|
| - const Vector<const InterpolationType*>& interpolationTypes,
|
| - const PropertySpecificKeyframe& startKeyframe,
|
| - const PropertySpecificKeyframe& endKeyframe)
|
| - : Interpolation(nullptr, nullptr)
|
| - , m_interpolationTypes(interpolationTypes)
|
| - , m_startKeyframe(&startKeyframe)
|
| - , m_endKeyframe(&endKeyframe)
|
| - , m_currentFraction(std::numeric_limits<double>::quiet_NaN())
|
| - , m_isCached(false)
|
| - { }
|
| -
|
| - PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const InterpolationEnvironment&) const;
|
| - const InterpolationValue* ensureValidInterpolation(const InterpolationEnvironment&, const UnderlyingValue&) const;
|
| - void clearCache() const;
|
| - bool isCacheValid(const InterpolationEnvironment&, const UnderlyingValue&) const;
|
| - bool isNeutralKeyframeActive() const;
|
| - PassOwnPtr<PairwisePrimitiveInterpolation> maybeConvertPairwise(const InterpolationEnvironment*, const UnderlyingValue&) const;
|
| - PassOwnPtr<InterpolationValue> convertSingleKeyframe(const PropertySpecificKeyframe&, const InterpolationEnvironment&, const UnderlyingValue&) const;
|
| - void setFlagIfInheritUsed(InterpolationEnvironment&) const;
|
| - double underlyingFraction() const;
|
| -
|
| - const Vector<const InterpolationType*>& m_interpolationTypes;
|
| - const PropertySpecificKeyframe* m_startKeyframe;
|
| - const PropertySpecificKeyframe* m_endKeyframe;
|
| - double m_currentFraction;
|
| - mutable bool m_isCached;
|
| - mutable OwnPtr<PrimitiveInterpolation> m_cachedPairConversion;
|
| - mutable InterpolationType::ConversionCheckers m_conversionCheckers;
|
| - mutable OwnPtr<InterpolationValue> m_cachedValue;
|
| -};
|
| -
|
| -DEFINE_TYPE_CASTS(InvalidatableStyleInterpolation, Interpolation, value, value->isInvalidatableStyleInterpolation(), value.isInvalidatableStyleInterpolation());
|
| -
|
| -} // namespace blink
|
| -
|
| -#endif // InvalidatableStyleInterpolation_h
|
|
|