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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.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/CSSTranslateInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
index 87e1460064bf0bb890e445dd9add844f85613adc..95f82302dfdfbe8e288f8795d0725c473685cd0c 100644
--- a/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.cpp
@@ -115,7 +115,7 @@ InterpolationValue CSSTranslateInterpolationType::maybeConvertValue(const CSSVal
InterpolationValue CSSTranslateInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
- return convertTranslateOperation(environment.state().style()->translate(), environment.state().style()->effectiveZoom());
+ return convertTranslateOperation(environment.style().translate(), environment.style().effectiveZoom());
}
void CSSTranslateInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue*, InterpolationEnvironment& environment) const
@@ -129,7 +129,7 @@ void CSSTranslateInterpolationType::apply(const InterpolableValue& interpolableV
RefPtr<TranslateTransformOperation> result = nullptr;
if (!x.isZero() || !y.isZero() || z != 0)
result = TranslateTransformOperation::create(x, y, z, TransformOperation::Translate3D);
- environment.state().style()->setTranslate(result.release());
+ environment.style().setTranslate(result.release());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698