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

Unified Diff: third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.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/CSSBorderImageLengthBoxInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp
index 3ff1615dd05ac73ed280312b5c208ca78d9967a0..6bb2b45fede8926caf66a37533bb60d66f4c1a4e 100644
--- a/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp
@@ -219,7 +219,7 @@ InterpolationValue CSSBorderImageLengthBoxInterpolationType::maybeConvertValue(c
InterpolationValue CSSBorderImageLengthBoxInterpolationType::maybeConvertUnderlyingValue(const InterpolationEnvironment& environment) const
{
- const ComputedStyle& style = *environment.state().style();
+ const ComputedStyle& style = environment.style();
return convertBorderImageLengthBox(BorderImageLengthBoxPropertyFunctions::getBorderImageLengthBox(cssProperty(), style), style.effectiveZoom());
}
@@ -274,7 +274,7 @@ void CSSBorderImageLengthBoxInterpolationType::apply(const InterpolableValue& in
convertSide(SideRight),
convertSide(SideBottom),
convertSide(SideLeft));
- BorderImageLengthBoxPropertyFunctions::setBorderImageLengthBox(cssProperty(), *environment.state().style(), box);
+ BorderImageLengthBoxPropertyFunctions::setBorderImageLengthBox(cssProperty(), environment.style(), box);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698