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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.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/CSSTextIndentInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
index 019fe0899bf15c9c1edaf561763a3922f43606e2..687becbf5d7a2bc90fe211b7072c553e885c12d1 100644
--- a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
@@ -157,7 +157,7 @@ InterpolationValue CSSTextIndentInterpolationType::maybeConvertValue(const CSSVa
InterpolationValue CSSTextIndentInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
- const ComputedStyle& style = *environment.state().style();
+ const ComputedStyle& style = environment.style();
return createValue(style.textIndent(), IndentMode(style), style.effectiveZoom());
}
@@ -198,7 +198,7 @@ void CSSTextIndentInterpolationType::composite(UnderlyingValueOwner& underlyingV
void CSSTextIndentInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue* nonInterpolableValue, InterpolationEnvironment& environment) const
{
const CSSTextIndentNonInterpolableValue& cssTextIndentNonInterpolableValue = toCSSTextIndentNonInterpolableValue(*nonInterpolableValue);
- ComputedStyle& style = *environment.state().style();
+ ComputedStyle& style = environment.style();
style.setTextIndent(CSSLengthInterpolationType::resolveInterpolableLength(
interpolableValue,
cssTextIndentNonInterpolableValue.lengthNonInterpolableValue(),

Powered by Google App Engine
This is Rietveld 408576698