| Index: Source/core/css/parser/CSSParser.cpp
|
| diff --git a/Source/core/css/parser/CSSParser.cpp b/Source/core/css/parser/CSSParser.cpp
|
| index 764412343b51a10a43d198581c1fcf323886d5a8..58d12275e2ee71ac52bbec7f1385806071459281 100644
|
| --- a/Source/core/css/parser/CSSParser.cpp
|
| +++ b/Source/core/css/parser/CSSParser.cpp
|
| @@ -176,4 +176,18 @@ bool CSSParser::parseSystemColor(RGBA32& color, const String& colorString)
|
| return true;
|
| }
|
|
|
| +PassRefPtrWillBeRawPtr<CSSValue> CSSParser::parseFontFaceDescriptor(CSSPropertyID propertyID, const String& propertyValue, const CSSParserContext& context)
|
| +{
|
| + StringBuilder builder;
|
| + builder.appendLiteral("@font-face { ");
|
| + builder.append(getPropertyNameString(propertyID));
|
| + builder.appendLiteral(" : ");
|
| + builder.append(propertyValue);
|
| + builder.appendLiteral("; }");
|
| + RefPtrWillBeRawPtr<StyleRuleBase> rule = parseRule(context, 0, builder.toString());
|
| + if (!rule || !rule->isFontFaceRule())
|
| + return nullptr;
|
| + return toStyleRuleFontFace(rule.get())->properties().getPropertyCSSValue(propertyID);
|
| +}
|
| +
|
| } // namespace blink
|
|
|