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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.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/CSSTranslateInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
index ea9504af7be201aac6fdb60e2dee3496b5a7f8b1..a1e9934def6ee5a145d288e7394265ce534c8f46 100644
--- a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
@@ -144,13 +144,13 @@ InterpolationValue CSSTranslateInterpolationType::maybeConvertUnderlyingValue(
environment.state().style()->effectiveZoom());
}
-void CSSTranslateInterpolationType::apply(
+void CSSTranslateInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue*,
- InterpolationEnvironment& environment) const {
+ StyleResolverState& state) const {
const InterpolableList& list = toInterpolableList(interpolableValue);
const CSSToLengthConversionData& conversionData =
- environment.state().cssToLengthConversionData();
+ state.cssToLengthConversionData();
Length x = LengthInterpolationFunctions::createLength(
*list.get(TranslateX), nullptr, conversionData, ValueRangeAll);
Length y = LengthInterpolationFunctions::createLength(
@@ -163,7 +163,7 @@ void CSSTranslateInterpolationType::apply(
if (!x.isZero() || !y.isZero() || z != 0)
result = TranslateTransformOperation::create(
x, y, z, TransformOperation::Translate3D);
- environment.state().style()->setTranslate(result.release());
+ state.style()->setTranslate(result.release());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698