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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.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/CSSLengthInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
index 5760fff0a576eadae27395411c495b3cbf25a93b..0bb77d3ddf54e1c93f211d0874b7c3138263a3c8 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
@@ -28,15 +28,15 @@ float CSSLengthInterpolationType::effectiveZoom(
: 1;
}
-class ParentLengthChecker : public InterpolationType::ConversionChecker {
+class InheritedLengthChecker : public InterpolationType::ConversionChecker {
public:
- static std::unique_ptr<ParentLengthChecker> create(CSSPropertyID property,
- const Length& length) {
- return wrapUnique(new ParentLengthChecker(property, length));
+ static std::unique_ptr<InheritedLengthChecker> create(CSSPropertyID property,
+ const Length& length) {
+ return wrapUnique(new InheritedLengthChecker(property, length));
}
private:
- ParentLengthChecker(CSSPropertyID property, const Length& length)
+ InheritedLengthChecker(CSSPropertyID property, const Length& length)
: m_property(property), m_length(length) {}
bool isValid(const InterpolationEnvironment& environment,
@@ -78,7 +78,7 @@ InterpolationValue CSSLengthInterpolationType::maybeConvertInherit(
inheritedLength))
return nullptr;
conversionCheckers.append(
- ParentLengthChecker::create(cssProperty(), inheritedLength));
+ InheritedLengthChecker::create(cssProperty(), inheritedLength));
return LengthInterpolationFunctions::maybeConvertLength(
inheritedLength, effectiveZoom(*state.parentStyle()));
}

Powered by Google App Engine
This is Rietveld 408576698