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

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

Issue 2346193002: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Rebase please work Created 4 years, 3 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/CSSFontWeightInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
index f238148f2ff0ba067867ea9a9b43a110e127b916..ff85cb9484458dd71c8e89ab6b95bf278f008567 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
@@ -103,11 +103,11 @@ InterpolationValue CSSFontWeightInterpolationType::maybeConvertInherit(const Sty
InterpolationValue CSSFontWeightInterpolationType::maybeConvertValue(const CSSValue& value, const StyleResolverState& state, ConversionCheckers& conversionCheckers) const
{
- if (!value.isPrimitiveValue())
+ if (!value.isIdentifierValue())
return nullptr;
- const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
- CSSValueID keyword = primitiveValue.getValueID();
+ const CSSIdentifierValue& identifierValue = toCSSIdentifierValue(value);
+ CSSValueID keyword = identifierValue.getValueID();
switch (keyword) {
case CSSValueInvalid:
@@ -123,7 +123,7 @@ InterpolationValue CSSFontWeightInterpolationType::maybeConvertValue(const CSSVa
}
default:
- return createFontWeightValue(primitiveValue.convertTo<FontWeight>());
+ return createFontWeightValue(identifierValue.convertTo<FontWeight>());
}
}

Powered by Google App Engine
This is Rietveld 408576698