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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.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/CSSFilterListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp
index 980ef0f70452c0d5ebdbcd52e8648ead71dfe206..3af3c3a8f335425fca7a04276d101c7a501ab006 100644
--- a/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp
@@ -272,10 +272,10 @@ void CSSFilterListInterpolationType::composite(
const_cast<NonInterpolableValue*>(value.nonInterpolableValue.get());
}
-void CSSFilterListInterpolationType::apply(
+void CSSFilterListInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue* nonInterpolableValue,
- InterpolationEnvironment& environment) const {
+ StyleResolverState& state) const {
const InterpolableList& interpolableList =
toInterpolableList(interpolableValue);
const NonInterpolableList& nonInterpolableList =
@@ -285,13 +285,13 @@ void CSSFilterListInterpolationType::apply(
FilterOperations filterOperations;
filterOperations.operations().reserveCapacity(length);
- for (size_t i = 0; i < length; i++)
+ for (size_t i = 0; i < length; i++) {
filterOperations.operations().push_back(
- FilterInterpolationFunctions::createFilter(*interpolableList.get(i),
- *nonInterpolableList.get(i),
- environment.state()));
- FilterListPropertyFunctions::setFilterList(
- cssProperty(), *environment.state().style(), std::move(filterOperations));
+ FilterInterpolationFunctions::createFilter(
+ *interpolableList.get(i), *nonInterpolableList.get(i), state));
+ }
+ FilterListPropertyFunctions::setFilterList(cssProperty(), *state.style(),
+ std::move(filterOperations));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698