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

Unified Diff: third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.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/CSSMotionRotationInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp
index 3a55984b9c7617f863823e2f5efdb6867d5ce0ab..2915410dcb91891dc72de4ca704580fad93f7fb1 100644
--- a/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp
@@ -124,7 +124,7 @@ PairwiseInterpolationValue CSSMotionRotationInterpolationType::maybeMergeSingles
InterpolationValue CSSMotionRotationInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
- return convertMotionRotation(environment.state().style()->motionRotation());
+ return convertMotionRotation(environment.style().motionRotation());
}
void CSSMotionRotationInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const
@@ -139,7 +139,7 @@ void CSSMotionRotationInterpolationType::composite(UnderlyingValueOwner& underly
void CSSMotionRotationInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue* nonInterpolableValue, InterpolationEnvironment& environment) const
{
- environment.state().style()->setMotionRotation(StyleMotionRotation(
+ environment.style().setMotionRotation(StyleMotionRotation(
toInterpolableNumber(interpolableValue).value(),
toCSSMotionRotationNonInterpolableValue(*nonInterpolableValue).rotationType()));
}

Powered by Google App Engine
This is Rietveld 408576698