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

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

Issue 2651533005: Make StyleResolverState argument a pointer in maybeConvertValue() (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/CSSFontSizeInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
index faaa891813eb181ee70c0e48e030ecd29c5b648e..1a69b4332e6c279f15c35b793069bb141ba6c232 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
@@ -111,7 +111,7 @@ InterpolationValue CSSFontSizeInterpolationType::maybeConvertInherit(
InterpolationValue CSSFontSizeInterpolationType::maybeConvertValue(
const CSSValue& value,
- const StyleResolverState& state,
+ const StyleResolverState* state,
ConversionCheckers& conversionCheckers) const {
std::unique_ptr<InterpolableValue> result =
LengthInterpolationFunctions::maybeConvertCSSValue(value)
@@ -122,7 +122,8 @@ InterpolationValue CSSFontSizeInterpolationType::maybeConvertValue(
if (!value.isIdentifierValue())
return nullptr;
- return maybeConvertKeyword(toCSSIdentifierValue(value).getValueID(), state,
+ DCHECK(state);
+ return maybeConvertKeyword(toCSSIdentifierValue(value).getValueID(), *state,
conversionCheckers);
}

Powered by Google App Engine
This is Rietveld 408576698