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

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

Issue 2453573003: Web Animations: consistent naming for parent style checkers (Closed)
Patch Set: inheritedValue Created 4 years, 2 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/CSSImageInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp
index af52ea53ae612892318f5025fded99a34aa8e10c..9ad86040e66051fe56fd173e90d855ae494afac5 100644
--- a/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp
@@ -169,18 +169,18 @@ InterpolationValue CSSImageInterpolationType::maybeConvertInitial(
ImagePropertyFunctions::getInitialStyleImage(cssProperty()), true);
}
-class ParentImageChecker : public InterpolationType::ConversionChecker {
+class InheritedImageChecker : public InterpolationType::ConversionChecker {
public:
- ~ParentImageChecker() final {}
+ ~InheritedImageChecker() final {}
- static std::unique_ptr<ParentImageChecker> create(
+ static std::unique_ptr<InheritedImageChecker> create(
CSSPropertyID property,
StyleImage* inheritedImage) {
- return wrapUnique(new ParentImageChecker(property, inheritedImage));
+ return wrapUnique(new InheritedImageChecker(property, inheritedImage));
}
private:
- ParentImageChecker(CSSPropertyID property, StyleImage* inheritedImage)
+ InheritedImageChecker(CSSPropertyID property, StyleImage* inheritedImage)
: m_property(property), m_inheritedImage(inheritedImage) {}
bool isValid(const InterpolationEnvironment& environment,
@@ -208,7 +208,7 @@ InterpolationValue CSSImageInterpolationType::maybeConvertInherit(
cssProperty(), *state.parentStyle());
StyleImage* refableImage = const_cast<StyleImage*>(inheritedImage);
conversionCheckers.append(
- ParentImageChecker::create(cssProperty(), refableImage));
+ InheritedImageChecker::create(cssProperty(), refableImage));
return maybeConvertStyleImage(inheritedImage, true);
}

Powered by Google App Engine
This is Rietveld 408576698