Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: third_party/WebKit/Source/core/animation/LengthUnitsChecker.h

Issue 2812213002: Add CSSInterpolationType specific ConversionChecker (Closed)
Patch Set: rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698