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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.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/CSSLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
index c3a82e073fb3a21976584a2f0357eb722a22d109..c4f8a65a6c19c122d47a99dde094be56f3ac78ce 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
@@ -147,10 +147,10 @@ void CSSLengthListInterpolationType::composite(
LengthInterpolationFunctions::composite);
}
-void CSSLengthListInterpolationType::apply(
+void CSSLengthListInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue* nonInterpolableValue,
- InterpolationEnvironment& environment) const {
+ StyleResolverState& state) const {
const InterpolableList& interpolableList =
toInterpolableList(interpolableValue);
const size_t length = interpolableList.length();
@@ -162,10 +162,10 @@ void CSSLengthListInterpolationType::apply(
for (size_t i = 0; i < length; i++) {
result[i] = LengthInterpolationFunctions::createLength(
*interpolableList.get(i), nonInterpolableList.get(i),
- environment.state().cssToLengthConversionData(), m_valueRange);
+ state.cssToLengthConversionData(), m_valueRange);
}
- LengthListPropertyFunctions::setLengthList(
- cssProperty(), *environment.state().style(), std::move(result));
+ LengthListPropertyFunctions::setLengthList(cssProperty(), *state.style(),
+ std::move(result));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698