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

Unified Diff: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp

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
Index: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
index 2191225e0bcd3beab86112af08d48f1320cf0ec7..be6893553a175c7d6a774f5774f880642116fe15 100644
--- a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
@@ -158,7 +158,8 @@ Color CSSColorInterpolationType::ResolveInterpolableColor(
round(alpha));
}
-class InheritedColorChecker : public InterpolationType::ConversionChecker {
+class InheritedColorChecker
+ : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedColorChecker> Create(
CSSPropertyID property,
@@ -170,10 +171,10 @@ class InheritedColorChecker : public InterpolationType::ConversionChecker {
InheritedColorChecker(CSSPropertyID property, const OptionalStyleColor& color)
: property_(property), color_(color) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
return color_ == ColorPropertyFunctions::GetUnvisitedColor(
- property_, *environment.GetState().ParentStyle());
+ property_, *state.ParentStyle());
}
const CSSPropertyID property_;

Powered by Google App Engine
This is Rietveld 408576698