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

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

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy 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 42e107e24766c9e2a51c3cc80a66c63da33cae78..b1db3b961c80c4506fb765c6c84c104c26f52e1b 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
@@ -99,11 +99,11 @@ 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:
@@ -122,7 +122,7 @@ InterpolationValue CSSFontWeightInterpolationType::maybeConvertValue(
}
default:
- return createFontWeightValue(primitiveValue.convertTo<FontWeight>());
+ return createFontWeightValue(identifierValue.convertTo<FontWeight>());
}
}

Powered by Google App Engine
This is Rietveld 408576698