| Index: Source/core/css/resolver/StyleBuilderConverter.cpp
|
| diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| index 54b86566976329a1038fc5cba804da0cba0a071c..a0b47c04dda70aa5305cf0804a0ee968bff1ffc8 100644
|
| --- a/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| +++ b/Source/core/css/resolver/StyleBuilderConverter.cpp
|
| @@ -90,6 +90,19 @@ AtomicString StyleBuilderConverter::convertFragmentIdentifier(StyleResolverState
|
| return nullAtom;
|
| }
|
|
|
| +FontWeight StyleBuilderConverter::convertFontWeight(StyleResolverState& state, CSSValue* value)
|
| +{
|
| + CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
|
| + switch (primitiveValue->getValueID()) {
|
| + case CSSValueBolder:
|
| + return FontDescription::bolderWeight(state.parentStyle()->fontDescription().weight());
|
| + case CSSValueLighter:
|
| + return FontDescription::lighterWeight(state.parentStyle()->fontDescription().weight());
|
| + default:
|
| + return *primitiveValue;
|
| + }
|
| +}
|
| +
|
| FontDescription::VariantLigatures StyleBuilderConverter::convertFontVariantLigatures(StyleResolverState&, CSSValue* value)
|
| {
|
| if (value->isValueList()) {
|
|
|