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/CSSPaintInterpolationType.cpp

Issue 1885353004: Add ComputedStyle constructor and getter to InterpolationEnvironment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_transformInterpolationType
Patch Set: Rebased Created 4 years, 4 months 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 63b4938304a8ab7e4d726eddabd24cb71774a71f..b2effd04832bee776a3cd3c883598907a0e09422 100644
--- a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
@@ -85,14 +85,14 @@ InterpolationValue CSSPaintInterpolationType::maybeConvertUnderlyingValue(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(), environment.style(), underlyingColor))
return nullptr;
return InterpolationValue(CSSColorInterpolationType::createInterpolableColor(underlyingColor));
}
void CSSPaintInterpolationType::apply(const InterpolableValue& interpolableColor, const NonInterpolableValue*, InterpolationEnvironment& environment) const
{
- PaintPropertyFunctions::setColor(cssProperty(), *environment.state().style(), CSSColorInterpolationType::resolveInterpolableColor(interpolableColor, environment.state()));
+ PaintPropertyFunctions::setColor(cssProperty(), environment.style(), CSSColorInterpolationType::resolveInterpolableColor(interpolableColor, environment.state()));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698