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

Unified Diff: third_party/WebKit/Source/core/animation/CSSClipInterpolationType.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/CSSClipInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
index 3a3ea9defe1c76df91a29ff5f20801e9a50c05fa..a0d75c1d859ff367a654e7f7db6fccaadcb8f34c 100644
--- a/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp
@@ -262,25 +262,24 @@ void CSSClipInterpolationType::composite(
underlyingValueOwner.set(*this, value);
}
-void CSSClipInterpolationType::apply(
+void CSSClipInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue* nonInterpolableValue,
- InterpolationEnvironment& environment) const {
+ StyleResolverState& state) const {
const ClipAutos& autos =
toCSSClipNonInterpolableValue(nonInterpolableValue)->clipAutos();
const InterpolableList& list = toInterpolableList(interpolableValue);
- const auto& convertIndex = [&list, &environment](bool isAuto, size_t index) {
+ const auto& convertIndex = [&list, &state](bool isAuto, size_t index) {
if (isAuto)
return Length(Auto);
return LengthInterpolationFunctions::createLength(
- *list.get(index), nullptr,
- environment.state().cssToLengthConversionData(), ValueRangeAll);
+ *list.get(index), nullptr, state.cssToLengthConversionData(),
+ ValueRangeAll);
};
- environment.state().style()->setClip(
- LengthBox(convertIndex(autos.isTopAuto, ClipTop),
- convertIndex(autos.isRightAuto, ClipRight),
- convertIndex(autos.isBottomAuto, ClipBottom),
- convertIndex(autos.isLeftAuto, ClipLeft)));
+ state.style()->setClip(LengthBox(convertIndex(autos.isTopAuto, ClipTop),
+ convertIndex(autos.isRightAuto, ClipRight),
+ convertIndex(autos.isBottomAuto, ClipBottom),
+ convertIndex(autos.isLeftAuto, ClipLeft)));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698