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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.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/CSSFilterListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp
index 7e28a0ee73a5433f369dd4b15e73cbccbfad6d7b..bad3d3a4878b4bab248bb27184c412989c96d60f 100644
--- a/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp
@@ -127,7 +127,7 @@ InterpolationValue CSSFilterListInterpolationType::maybeConvertValue(const CSSVa
InterpolationValue CSSFilterListInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
- const ComputedStyle& style = *environment.state().style();
+ const ComputedStyle& style = environment.style();
return convertFilterList(FilterListPropertyFunctions::getFilterList(cssProperty(), style), style.effectiveZoom());
}
@@ -213,7 +213,7 @@ void CSSFilterListInterpolationType::apply(const InterpolableValue& interpolable
filterOperations.operations().reserveCapacity(length);
for (size_t i = 0; i < length; i++)
filterOperations.operations().append(FilterInterpolationFunctions::createFilter(*interpolableList.get(i), *nonInterpolableList.get(i), environment.state()));
- FilterListPropertyFunctions::setFilterList(cssProperty(), *environment.state().style(), std::move(filterOperations));
+ FilterListPropertyFunctions::setFilterList(cssProperty(), environment.style(), std::move(filterOperations));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698