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

Unified Diff: third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.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/CSSImageListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.cpp
index 90c0168b1231163333d0fafca258885fc86565c9..c741c7ef0a49b68bfb9aa917d0f62015d238d44d 100644
--- a/third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.cpp
@@ -130,7 +130,7 @@ PairwiseInterpolationValue CSSImageListInterpolationType::maybeMergeSingles(Inte
InterpolationValue CSSImageListInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
StyleImageList underlyingImageList;
- ImageListPropertyFunctions::getImageList(cssProperty(), *environment.state().style(), underlyingImageList);
+ ImageListPropertyFunctions::getImageList(cssProperty(), environment.style(), underlyingImageList);
return maybeConvertStyleImageList(underlyingImageList);
}
@@ -149,7 +149,7 @@ void CSSImageListInterpolationType::apply(const InterpolableValue& interpolableV
StyleImageList imageList(length);
for (size_t i = 0; i < length; i++)
imageList[i] = CSSImageInterpolationType::resolveStyleImage(cssProperty(), *interpolableList.get(i), nonInterpolableList.get(i), environment.state());
- ImageListPropertyFunctions::setImageList(cssProperty(), *environment.state().style(), imageList);
+ ImageListPropertyFunctions::setImageList(cssProperty(), environment.style(), imageList);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698