blob: 5fb2e8c354f986dcceeccf75a6a9d95c23b9ed18 [file] [log] [blame]
// 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 CSSLengthListInterpolationType_h
#define CSSLengthListInterpolationType_h
#include "core/animation/CSSInterpolationType.h"
#include "core/animation/CSSLengthInterpolationType.h"
#include "platform/Length.h"
namespace blink {
class CSSLengthListInterpolationType : public CSSInterpolationType {
public:
CSSLengthListInterpolationType(PropertyHandle);
InterpolationValue maybeConvertStandardPropertyUnderlyingValue(
const StyleResolverState&) const final;
void composite(UnderlyingValueOwner&,
double underlyingFraction,
const InterpolationValue&,
double interpolationFraction) const final;
void applyStandardPropertyValue(const InterpolableValue&,
const NonInterpolableValue*,
StyleResolverState&) const final;
private:
InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying,
ConversionCheckers&) const final;
InterpolationValue maybeConvertInitial(const StyleResolverState&,
ConversionCheckers&) const final;
InterpolationValue maybeConvertInherit(const StyleResolverState&,
ConversionCheckers&) const final;
virtual InterpolationValue maybeConvertValue(const CSSValue&,
const StyleResolverState&,
ConversionCheckers&) const;
PairwiseInterpolationValue maybeMergeSingles(
InterpolationValue&& start,
InterpolationValue&& end) const final;
const ValueRange m_valueRange;
};
} // namespace blink
#endif // CSSLengthListInterpolationType_h