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

Unified Diff: third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.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/CSSNumberInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
index 4c04c8c5e6bf14a2c56fa0fd8a2ba232e5dc995a..b5ad40729e8334923790ba4f894c620bacddbb12 100644
--- a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
@@ -12,15 +12,15 @@
namespace blink {
-class ParentNumberChecker : public InterpolationType::ConversionChecker {
+class InheritedNumberChecker : public InterpolationType::ConversionChecker {
public:
- static std::unique_ptr<ParentNumberChecker> create(CSSPropertyID property,
- double number) {
- return wrapUnique(new ParentNumberChecker(property, number));
+ static std::unique_ptr<InheritedNumberChecker> create(CSSPropertyID property,
+ double number) {
+ return wrapUnique(new InheritedNumberChecker(property, number));
}
private:
- ParentNumberChecker(CSSPropertyID property, double number)
+ InheritedNumberChecker(CSSPropertyID property, double number)
: m_property(property), m_number(number) {}
bool isValid(const InterpolationEnvironment& environment,
@@ -66,7 +66,7 @@ InterpolationValue CSSNumberInterpolationType::maybeConvertInherit(
inheritedNumber))
return nullptr;
conversionCheckers.append(
- ParentNumberChecker::create(cssProperty(), inheritedNumber));
+ InheritedNumberChecker::create(cssProperty(), inheritedNumber));
return createNumberValue(inheritedNumber);
}

Powered by Google App Engine
This is Rietveld 408576698