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

Unified Diff: third_party/WebKit/Source/core/animation/CSSPathInterpolationType.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/CSSPathInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
index 28a76f18088dfb2d58920f4500d40868df856c52..2b4a256af3bf216a1bc73e1a2b55dccb2704138c 100644
--- a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
@@ -50,7 +50,7 @@ InterpolationValue CSSPathInterpolationType::MaybeConvertInitial(
return PathInterpolationFunctions::ConvertValue(nullptr);
}
-class InheritedPathChecker : public InterpolationType::ConversionChecker {
+class InheritedPathChecker : public CSSInterpolationType::CSSConversionChecker {
public:
static std::unique_ptr<InheritedPathChecker> Create(
PassRefPtr<StylePath> style_path) {
@@ -61,10 +61,9 @@ class InheritedPathChecker : public InterpolationType::ConversionChecker {
InheritedPathChecker(PassRefPtr<StylePath> style_path)
: style_path_(std::move(style_path)) {}
- bool IsValid(const InterpolationEnvironment& environment,
+ bool IsValid(const StyleResolverState& state,
const InterpolationValue& underlying) const final {
- return environment.GetState().ParentStyle()->SvgStyle().D() ==
- style_path_.Get();
+ return state.ParentStyle()->SvgStyle().D() == style_path_.Get();
}
const RefPtr<StylePath> style_path_;

Powered by Google App Engine
This is Rietveld 408576698