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

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

Issue 2578043002: Rename apply() in CSSInterpolationType subclasses (Closed)
Patch Set: rebased Created 4 years 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/CSSFontSizeInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
index 3c6f82bb4180e5121b48506ca40b1c246e8d844e..72522469ed8a4adbd521c29adde30d9b677f4be0 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
@@ -131,18 +131,17 @@ InterpolationValue CSSFontSizeInterpolationType::maybeConvertUnderlyingValue(
return convertFontSize(environment.state().style()->specifiedFontSize());
}
-void CSSFontSizeInterpolationType::apply(
+void CSSFontSizeInterpolationType::applyStandardPropertyValue(
const InterpolableValue& interpolableValue,
const NonInterpolableValue*,
- InterpolationEnvironment& environment) const {
- const FontDescription& parentFont =
- environment.state().parentFontDescription();
+ StyleResolverState& state) const {
+ const FontDescription& parentFont = state.parentFontDescription();
Length fontSizeLength = LengthInterpolationFunctions::createLength(
- interpolableValue, nullptr, environment.state().fontSizeConversionData(),
+ interpolableValue, nullptr, state.fontSizeConversionData(),
ValueRangeNonNegative);
float fontSize =
floatValueForLength(fontSizeLength, parentFont.getSize().value);
- environment.state().fontBuilder().setSize(FontDescription::Size(
+ state.fontBuilder().setSize(FontDescription::Size(
0, fontSize,
!fontSizeLength.isPercentOrCalc() || parentFont.isAbsoluteSize()));
}

Powered by Google App Engine
This is Rietveld 408576698