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

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

Issue 2575763002: Rename maybeConvertUnderlyingValue() in CSSInterpolationType subclasses (Closed)
Patch Set: rebased Created 4 years 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 4f4cd500695bae6d0bcb7610f044cf9cbb30636c..ef2dae40b623c3d1cd6d1d2388d72b0574b1b781 100644
--- a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
@@ -79,11 +79,12 @@ InterpolationValue CSSNumberInterpolationType::maybeConvertValue(
return createNumberValue(toCSSPrimitiveValue(value).getDoubleValue());
}
-InterpolationValue CSSNumberInterpolationType::maybeConvertUnderlyingValue(
- const InterpolationEnvironment& environment) const {
+InterpolationValue
+CSSNumberInterpolationType::maybeConvertStandardPropertyUnderlyingValue(
+ const StyleResolverState& state) const {
double underlyingNumber;
- if (!NumberPropertyFunctions::getNumber(
- cssProperty(), *environment.state().style(), underlyingNumber))
+ if (!NumberPropertyFunctions::getNumber(cssProperty(), *state.style(),
+ underlyingNumber))
return nullptr;
return createNumberValue(underlyingNumber);
}

Powered by Google App Engine
This is Rietveld 408576698