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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.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/CSSTransformInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
index f938343dcf0bc0eae07178cf4f3fdeb7b8c5ae13..a8735d6a2b32d99a06d7c22ed939a9c9762df752 100644
--- a/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
@@ -195,7 +195,7 @@ PairwiseInterpolationValue CSSTransformInterpolationType::maybeMergeSingles(Inte
InterpolationValue CSSTransformInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
- return convertTransform(environment.state().style()->transform());
+ return convertTransform(environment.style().transform());
}
void CSSTransformInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const
@@ -210,7 +210,7 @@ void CSSTransformInterpolationType::apply(const InterpolableValue& interpolableV
{
double progress = toInterpolableNumber(interpolableValue).value();
const CSSTransformNonInterpolableValue& nonInterpolableValue = toCSSTransformNonInterpolableValue(*untypedNonInterpolableValue);
- environment.state().style()->setTransform(nonInterpolableValue.getInterpolatedTransform(progress));
+ environment.style().setTransform(nonInterpolableValue.getInterpolatedTransform(progress));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698