| Index: Source/core/css/FontFace.cpp
|
| diff --git a/Source/core/css/FontFace.cpp b/Source/core/css/FontFace.cpp
|
| index 0d7ce68af047895fbb4990aa04d659debf436d70..9dd324942e717dd262810384790a52a487569bd0 100644
|
| --- a/Source/core/css/FontFace.cpp
|
| +++ b/Source/core/css/FontFace.cpp
|
| @@ -62,7 +62,7 @@
|
|
|
| namespace blink {
|
|
|
| -static PassRefPtrWillBeRawPtr<CSSValue> parseCSSValue(const Document* document, const String& value, CSSPropertyID propertyID)
|
| +static PassRefPtr<CSSValue> parseCSSValue(const Document* document, const String& value, CSSPropertyID propertyID)
|
| {
|
| CSSParserContext context(*document, UseCounter::getFrom(document));
|
| return CSSParser::parseFontFaceDescriptor(propertyID, value, context);
|
| @@ -84,7 +84,7 @@ PassRefPtrWillBeRawPtr<FontFace> FontFace::create(ExecutionContext* context, con
|
| {
|
| RefPtrWillBeRawPtr<FontFace> fontFace = adoptRefWillBeNoop(new FontFace(context, family, descriptors));
|
|
|
| - RefPtrWillBeRawPtr<CSSValue> src = parseCSSValue(toDocument(context), source, CSSPropertySrc);
|
| + RefPtr<CSSValue> src = parseCSSValue(toDocument(context), source, CSSPropertySrc);
|
| if (!src || !src->isValueList())
|
| fontFace->setError(DOMException::create(SyntaxError, "The source provided ('" + source + "') could not be parsed as a value list."));
|
|
|
| @@ -111,10 +111,10 @@ PassRefPtrWillBeRawPtr<FontFace> FontFace::create(Document* document, const Styl
|
| const StylePropertySet& properties = fontFaceRule->properties();
|
|
|
| // Obtain the font-family property and the src property. Both must be defined.
|
| - RefPtrWillBeRawPtr<CSSValue> family = properties.getPropertyCSSValue(CSSPropertyFontFamily);
|
| + RefPtr<CSSValue> family = properties.getPropertyCSSValue(CSSPropertyFontFamily);
|
| if (!family || !family->isValueList())
|
| return nullptr;
|
| - RefPtrWillBeRawPtr<CSSValue> src = properties.getPropertyCSSValue(CSSPropertySrc);
|
| + RefPtr<CSSValue> src = properties.getPropertyCSSValue(CSSPropertySrc);
|
| if (!src || !src->isValueList())
|
| return nullptr;
|
|
|
| @@ -224,7 +224,7 @@ void FontFace::setFeatureSettings(ExecutionContext* context, const String& s, Ex
|
|
|
| void FontFace::setPropertyFromString(const Document* document, const String& s, CSSPropertyID propertyID, ExceptionState* exceptionState)
|
| {
|
| - RefPtrWillBeRawPtr<CSSValue> value = parseCSSValue(document, s, propertyID);
|
| + RefPtr<CSSValue> value = parseCSSValue(document, s, propertyID);
|
| if (value && setPropertyValue(value, propertyID))
|
| return;
|
|
|
| @@ -240,7 +240,7 @@ bool FontFace::setPropertyFromStyle(const StylePropertySet& properties, CSSPrope
|
| return setPropertyValue(properties.getPropertyCSSValue(propertyID), propertyID);
|
| }
|
|
|
| -bool FontFace::setPropertyValue(PassRefPtrWillBeRawPtr<CSSValue> value, CSSPropertyID propertyID)
|
| +bool FontFace::setPropertyValue(PassRefPtr<CSSValue> value, CSSPropertyID propertyID)
|
| {
|
| switch (propertyID) {
|
| case CSSPropertyFontStyle:
|
| @@ -500,10 +500,10 @@ FontTraits FontFace::traits() const
|
| }
|
|
|
| FontVariant variant = FontVariantNormal;
|
| - if (RefPtrWillBeRawPtr<CSSValue> fontVariant = m_variant) {
|
| + if (RefPtr<CSSValue> fontVariant = m_variant) {
|
| // font-variant descriptor can be a value list.
|
| if (fontVariant->isPrimitiveValue()) {
|
| - RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
|
| + RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
|
| list->append(fontVariant);
|
| fontVariant = list;
|
| } else if (!fontVariant->isValueList()) {
|
| @@ -546,7 +546,7 @@ static PassOwnPtrWillBeRawPtr<CSSFontFace> createCSSFontFace(FontFace* fontFace,
|
| return adoptPtrWillBeNoop(new CSSFontFace(fontFace, ranges));
|
| }
|
|
|
| -void FontFace::initCSSFontFace(Document* document, PassRefPtrWillBeRawPtr<CSSValue> src)
|
| +void FontFace::initCSSFontFace(Document* document, PassRefPtr<CSSValue> src)
|
| {
|
| m_cssFontFace = createCSSFontFace(this, m_unicodeRange.get());
|
| if (m_error)
|
| @@ -599,13 +599,6 @@ void FontFace::initCSSFontFace(const unsigned char* data, unsigned size)
|
|
|
| DEFINE_TRACE(FontFace)
|
| {
|
| - visitor->trace(m_src);
|
| - visitor->trace(m_style);
|
| - visitor->trace(m_weight);
|
| - visitor->trace(m_stretch);
|
| - visitor->trace(m_unicodeRange);
|
| - visitor->trace(m_variant);
|
| - visitor->trace(m_featureSettings);
|
| visitor->trace(m_error);
|
| visitor->trace(m_loadedProperty);
|
| visitor->trace(m_cssFontFace);
|
|
|