Index: third_party/WebKit/Source/core/animation/LengthUnitsChecker.h |
diff --git a/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h b/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h |
index 9c7f73483cb5fd4346a1812f860b39cc44ca3e72..65e0a05ae4de21a584ec1181077d757a9a6eb8bd 100644 |
--- a/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h |
+++ b/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h |
@@ -6,14 +6,14 @@ |
#define LengthUnitsChecker_h |
#include <memory> |
-#include "core/animation/InterpolationType.h" |
+#include "core/animation/CSSInterpolationType.h" |
#include "core/css/CSSPrimitiveValue.h" |
#include "core/css/resolver/StyleResolverState.h" |
#include "platform/wtf/PtrUtil.h" |
namespace blink { |
-class LengthUnitsChecker : public InterpolationType::ConversionChecker { |
+class LengthUnitsChecker : public CSSInterpolationType::CSSConversionChecker { |
public: |
static std::unique_ptr<LengthUnitsChecker> MaybeCreate( |
CSSLengthArray&& length_array, |
@@ -34,14 +34,14 @@ class LengthUnitsChecker : public InterpolationType::ConversionChecker { |
new LengthUnitsChecker(std::move(length_array), last_index)); |
} |
- bool IsValid(const InterpolationEnvironment& environment, |
+ bool IsValid(const StyleResolverState& state, |
const InterpolationValue& underlying) const final { |
for (size_t i = 0; i <= last_index_; i++) { |
if (i == CSSPrimitiveValue::kUnitTypePercentage || |
!length_array_.type_flags.Get(i)) |
continue; |
if (length_array_.values[i] != |
- LengthUnit(i, environment.GetState().CssToLengthConversionData())) |
+ LengthUnit(i, state.CssToLengthConversionData())) |
return false; |
} |
return true; |