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

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

Issue 2578043002: Rename apply() 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 5b374f6dbc79f387676442f2822759f559bb67f7..4f4cd500695bae6d0bcb7610f044cf9cbb30636c 100644
--- a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp
@@ -88,16 +88,16 @@ InterpolationValue CSSNumberInterpolationType::maybeConvertUnderlyingValue(
return createNumberValue(underlyingNumber);
}
-void CSSNumberInterpolationType::apply(
+void CSSNumberInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue*,
- InterpolationEnvironment& environment) const {
+ StyleResolverState& state) const {
double clampedNumber = NumberPropertyFunctions::clampNumber(
cssProperty(), toInterpolableNumber(interpolableValue).value());
- if (!NumberPropertyFunctions::setNumber(
- cssProperty(), *environment.state().style(), clampedNumber))
+ if (!NumberPropertyFunctions::setNumber(cssProperty(), *state.style(),
+ clampedNumber))
StyleBuilder::applyProperty(
- cssProperty(), environment.state(),
+ cssProperty(), state,
*CSSPrimitiveValue::create(clampedNumber,
CSSPrimitiveValue::UnitType::Number));
}

Powered by Google App Engine
This is Rietveld 408576698