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

Unified Diff: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.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/CSSColorInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
index 93f1624dc4358cfca72214bac760bd8926ae8fde..410d124ae0d92c4bdbe1a20da4256734731c5ab2 100644
--- a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
@@ -247,21 +247,21 @@ InterpolationValue CSSColorInterpolationType::maybeConvertUnderlyingValue(
*environment.state().style()));
}
-void CSSColorInterpolationType::apply(
+void CSSColorInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue*,
- InterpolationEnvironment& environment) const {
+ StyleResolverState& state) const {
const InterpolableList& colorPair = toInterpolableList(interpolableValue);
DCHECK_EQ(colorPair.length(), InterpolableColorPairIndexCount);
ColorPropertyFunctions::setUnvisitedColor(
- cssProperty(), *environment.state().style(),
+ cssProperty(), *state.style(),
resolveInterpolableColor(
- *colorPair.get(Unvisited), environment.state(), false,
+ *colorPair.get(Unvisited), state, false,
cssProperty() == CSSPropertyTextDecorationColor));
ColorPropertyFunctions::setVisitedColor(
- cssProperty(), *environment.state().style(),
+ cssProperty(), *state.style(),
resolveInterpolableColor(
- *colorPair.get(Visited), environment.state(), true,
+ *colorPair.get(Visited), state, true,
cssProperty() == CSSPropertyTextDecorationColor));
}

Powered by Google App Engine
This is Rietveld 408576698