#include "third_party/blink/renderer/core/animation/css_translate_interpolation_type.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "third_party/blink/renderer/core/animation/interpolable_length.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver_state.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/transforms/translate_transform_operation.h"
namespace blink {
namespace {
InterpolationValue CreateNoneValue() { … }
bool IsNoneValue(const InterpolationValue& value) { … }
class InheritedTranslateChecker
: public CSSInterpolationType::CSSConversionChecker { … };
enum TranslateComponentIndex : unsigned { … };
InterpolableValue* CreateTranslateIdentity() { … }
InterpolationValue ConvertTranslateOperation(
const TranslateTransformOperation* translate,
const CSSProperty& property,
double zoom) { … }
}
InterpolationValue CSSTranslateInterpolationType::MaybeConvertNeutral(
const InterpolationValue& underlying,
ConversionCheckers&) const { … }
InterpolationValue CSSTranslateInterpolationType::MaybeConvertInitial(
const StyleResolverState&,
ConversionCheckers&) const { … }
InterpolationValue CSSTranslateInterpolationType::MaybeConvertInherit(
const StyleResolverState& state,
ConversionCheckers& conversion_checkers) const { … }
InterpolationValue CSSTranslateInterpolationType::MaybeConvertValue(
const CSSValue& value,
const StyleResolverState*,
ConversionCheckers&) const { … }
PairwiseInterpolationValue CSSTranslateInterpolationType::MaybeMergeSingles(
InterpolationValue&& start,
InterpolationValue&& end) const { … }
InterpolationValue
CSSTranslateInterpolationType::MaybeConvertStandardPropertyUnderlyingValue(
const ComputedStyle& style) const { … }
void CSSTranslateInterpolationType::Composite(
UnderlyingValueOwner& underlying_value_owner,
double underlying_fraction,
const InterpolationValue& value,
double interpolation_fraction) const { … }
void CSSTranslateInterpolationType::ApplyStandardPropertyValue(
const InterpolableValue& interpolable_value,
const NonInterpolableValue*,
StyleResolverState& state) const { … }
}