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

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

Issue 2657553003: Make maybeConvertStandardUnderlyingValue take a ComputedStyle instead of StyleResolverState (Closed)
Patch Set: Rebased Created 3 years, 10 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 8401ab53876ef418944c0aac0703dca73e2e738c..5ba322953fba1705331338db8395f6b0ae564279 100644
--- a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
@@ -90,12 +90,11 @@ InterpolationValue CSSPaintInterpolationType::maybeConvertValue(
InterpolationValue
CSSPaintInterpolationType::maybeConvertStandardPropertyUnderlyingValue(
- const StyleResolverState& state) const {
+ const ComputedStyle& style) const {
// TODO(alancutter): Support capturing and animating with the visited paint
// color.
StyleColor underlyingColor;
- if (!PaintPropertyFunctions::getColor(cssProperty(), *state.style(),
- underlyingColor))
+ if (!PaintPropertyFunctions::getColor(cssProperty(), style, underlyingColor))
return nullptr;
return InterpolationValue(
CSSColorInterpolationType::createInterpolableColor(underlyingColor));

Powered by Google App Engine
This is Rietveld 408576698