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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp

Issue 2657553003: Make maybeConvertStandardUnderlyingValue take a ComputedStyle instead of StyleResolverState (Closed)
Patch Set: Rebased Created 3 years, 10 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/CSSLengthInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
index 81b999702a28e4eb44ba0638e9d88326d085ced3..7d79676668c367e86a1bb09d6768b98b6ca103bd 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp
@@ -109,13 +109,13 @@ PairwiseInterpolationValue CSSLengthInterpolationType::maybeMergeSingles(
InterpolationValue
CSSLengthInterpolationType::maybeConvertStandardPropertyUnderlyingValue(
- const StyleResolverState& state) const {
+ const ComputedStyle& style) const {
Length underlyingLength;
- if (!LengthPropertyFunctions::getLength(cssProperty(), *state.style(),
+ if (!LengthPropertyFunctions::getLength(cssProperty(), style,
underlyingLength))
return nullptr;
- return LengthInterpolationFunctions::maybeConvertLength(
- underlyingLength, effectiveZoom(*state.style()));
+ return LengthInterpolationFunctions::maybeConvertLength(underlyingLength,
+ effectiveZoom(style));
}
const CSSValue* CSSLengthInterpolationType::createCSSValue(

Powered by Google App Engine
This is Rietveld 408576698