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

Unified Diff: third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp

Issue 2575763002: Rename maybeConvertUnderlyingValue() 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/CSSPaintInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
index cfd130805030cd33b1b9eb7ad7f6fdfb5fb743f4..8e7dee4cb5e68c854c28ea0798895bc6bf0a8947 100644
--- a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
@@ -88,13 +88,14 @@ InterpolationValue CSSPaintInterpolationType::maybeConvertValue(
return InterpolationValue(std::move(interpolableColor));
}
-InterpolationValue CSSPaintInterpolationType::maybeConvertUnderlyingValue(
- const InterpolationEnvironment& environment) const {
+InterpolationValue
+CSSPaintInterpolationType::maybeConvertStandardPropertyUnderlyingValue(
+ const StyleResolverState& state) const {
// TODO(alancutter): Support capturing and animating with the visited paint
// color.
StyleColor underlyingColor;
- if (!PaintPropertyFunctions::getColor(
- cssProperty(), *environment.state().style(), underlyingColor))
+ if (!PaintPropertyFunctions::getColor(cssProperty(), *state.style(),
+ underlyingColor))
return nullptr;
return InterpolationValue(
CSSColorInterpolationType::createInterpolableColor(underlyingColor));

Powered by Google App Engine
This is Rietveld 408576698