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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.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/CSSLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
index e9822d64966240aab3459894a912d07e2c127c3e..324dcfe0108dafd4ae5554e1f75cbeaeca564674 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
@@ -108,9 +108,9 @@ PairwiseInterpolationValue CSSLengthListInterpolationType::maybeMergeSingles(Int
InterpolationValue CSSLengthListInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
Vector<Length> underlyingLengthList;
- if (!LengthListPropertyFunctions::getLengthList(cssProperty(), *environment.state().style(), underlyingLengthList))
+ if (!LengthListPropertyFunctions::getLengthList(cssProperty(), environment.style(), underlyingLengthList))
return nullptr;
- return maybeConvertLengthList(underlyingLengthList, environment.state().style()->effectiveZoom());
+ return maybeConvertLengthList(underlyingLengthList, environment.style().effectiveZoom());
}
void CSSLengthListInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const
@@ -135,7 +135,7 @@ void CSSLengthListInterpolationType::apply(const InterpolableValue& interpolable
environment.state().cssToLengthConversionData(),
m_valueRange);
}
- LengthListPropertyFunctions::setLengthList(cssProperty(), *environment.state().style(), std::move(result));
+ LengthListPropertyFunctions::setLengthList(cssProperty(), environment.style(), std::move(result));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698