#include "third_party/blink/renderer/core/animation/css_filter_list_interpolation_type.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "third_party/blink/renderer/core/animation/interpolable_filter.h"
#include "third_party/blink/renderer/core/animation/list_interpolation_functions.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver_state.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
namespace blink {
namespace {
const FilterOperations& GetFilterList(const CSSProperty& property,
const ComputedStyle& style) { … }
void SetFilterList(const CSSProperty& property,
ComputedStyleBuilder& builder,
const FilterOperations& filter_operations) { … }
class UnderlyingFilterListChecker
: public CSSInterpolationType::CSSConversionChecker { … };
class InheritedFilterListChecker
: public CSSInterpolationType::CSSConversionChecker { … };
InterpolationValue ConvertFilterList(const FilterOperations& filter_operations,
const CSSProperty& property,
double zoom,
mojom::blink::ColorScheme color_scheme,
const ui::ColorProvider* color_provider) { … }
class AlwaysInvalidateChecker
: public CSSInterpolationType::CSSConversionChecker { … };
}
InterpolationValue CSSFilterListInterpolationType::MaybeConvertNeutral(
const InterpolationValue& underlying,
ConversionCheckers& conversion_checkers) const { … }
InterpolationValue CSSFilterListInterpolationType::MaybeConvertInitial(
const StyleResolverState& state,
ConversionCheckers& conversion_checkers) const { … }
InterpolationValue CSSFilterListInterpolationType::MaybeConvertInherit(
const StyleResolverState& state,
ConversionCheckers& conversion_checkers) const { … }
InterpolationValue CSSFilterListInterpolationType::MaybeConvertValue(
const CSSValue& value,
const StyleResolverState* state,
ConversionCheckers&) const { … }
InterpolationValue
CSSFilterListInterpolationType::MaybeConvertStandardPropertyUnderlyingValue(
const ComputedStyle& style) const { … }
PairwiseInterpolationValue CSSFilterListInterpolationType::MaybeMergeSingles(
InterpolationValue&& start,
InterpolationValue&& end) const { … }
void CSSFilterListInterpolationType::Composite(
UnderlyingValueOwner& underlying_value_owner,
double underlying_fraction,
const InterpolationValue& value,
double interpolation_fraction) const { … }
void CSSFilterListInterpolationType::ApplyStandardPropertyValue(
const InterpolableValue& interpolable_value,
const NonInterpolableValue* non_interpolable_value,
StyleResolverState& state) const { … }
InterpolationValue
CSSFilterListInterpolationType::PreInterpolationCompositeIfNeeded(
InterpolationValue value,
const InterpolationValue& underlying,
EffectModel::CompositeOperation composite,
ConversionCheckers& conversion_checkers) const { … }
InterpolationValue CSSFilterListInterpolationType::PerformAdditiveComposition(
InterpolableList* interpolable_list,
const InterpolableList& underlying_list) const { … }
InterpolationValue
CSSFilterListInterpolationType::PerformAccumulativeComposition(
InterpolableList* interpolable_list,
const InterpolableList& underlying_list) const { … }
}