Ignore:
Timestamp:
Oct 5, 2016, 5:40:41 PM (9 years ago)
Author:
[email protected]
Message:

Put variation fonts work behind a compile-time flag
https://bugs.webkit.org/show_bug.cgi?id=162949

Reviewed by Simon Fraser.

Source/JavaScriptCore:

  • Configurations/FeatureDefines.xcconfig:

Source/WebCore:

No new tests because there is no behavior change.

  • Configurations/FeatureDefines.xcconfig:
  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::propertyValue):

  • css/CSSFontVariationValue.cpp:
  • css/CSSFontVariationValue.h:
  • css/CSSPropertyNames.in:
  • css/CSSValue.cpp:

(WebCore::CSSValue::equals):
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):

  • css/CSSValue.h:

(WebCore::CSSValue::isFontFeatureValue): Deleted.
(WebCore::CSSValue::isFontVariationValue): Deleted.

  • css/StyleBuilderConverter.h:

(WebCore::StyleBuilderConverter::convertFontVariationSettings): Deleted.

  • css/StyleBuilderCustom.h:

(WebCore::StyleBuilderCustom::applyInheritFontFeatureSettings): Deleted.
(WebCore::StyleBuilderCustom::applyInheritFontVariationSettings): Deleted.

  • css/parser/CSSParser.cpp:

(WebCore::CSSParserContext::CSSParserContext):
(WebCore::operator==):
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseFontVariationSettings): Deleted.

  • css/parser/CSSParserMode.h:
  • page/Settings.in:
  • page/animation/CSSPropertyAnimation.cpp:

(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
(WebCore::blendFunc): Deleted.

  • platform/graphics/FontCache.h:

(WebCore::FontDescriptionKey::FontDescriptionKey):
(WebCore::FontDescriptionKey::operator==):
(WebCore::FontDescriptionKey::computeHash):

  • platform/graphics/FontDescription.cpp:
  • platform/graphics/FontDescription.h:

(WebCore::FontDescription::operator==):
(WebCore::FontDescription::setFeatureSettings): Deleted.
(WebCore::FontDescription::setVariationSettings): Deleted.

  • platform/graphics/FontTaggedSettings.cpp:

(WebCore::operator<<): Deleted.

  • platform/graphics/FontTaggedSettings.h:

(WebCore::FontVariationSettings::isEmpty):

  • platform/graphics/cocoa/FontCacheCoreText.cpp:

(WebCore::preparePlatformFont):

  • platform/graphics/cocoa/FontPlatformDataCocoa.mm:

(WebCore::cascadeToLastResortAndVariationsFontDescriptor):

  • rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::setFontVariationSettings): Deleted.

  • rendering/style/RenderStyle.h:

(WebCore::RenderStyle::fontVariationSettings): Deleted.

  • testing/InternalSettings.cpp:

(WebCore::InternalSettings::Backup::Backup):
(WebCore::InternalSettings::Backup::restoreTo):
(WebCore::InternalSettings::variationFontsEnabled):
(WebCore::InternalSettings::setVariationFontsEnabled):

  • testing/InternalSettings.h:

Source/WebKit/mac:

  • Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

  • Configurations/FeatureDefines.xcconfig:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSValue.cpp

    r206679 r206839  
    178178        case FontFeatureClass:
    179179            return compareCSSValues<CSSFontFeatureValue>(*this, other);
     180#if ENABLE(VARIATION_FONTS)
    180181        case FontVariationClass:
    181182            return compareCSSValues<CSSFontVariationValue>(*this, other);
     183#endif
    182184        case FunctionClass:
    183185            return compareCSSValues<CSSFunctionValue>(*this, other);
     
    286288    case FontFeatureClass:
    287289        return downcast<CSSFontFeatureValue>(*this).customCSSText();
     290#if ENABLE(VARIATION_FONTS)
    288291    case FontVariationClass:
    289292        return downcast<CSSFontVariationValue>(*this).customCSSText();
     293#endif
    290294    case FunctionClass:
    291295        return downcast<CSSFunctionValue>(*this).customCSSText();
     
    402406        delete downcast<CSSFontFeatureValue>(this);
    403407        return;
     408#if ENABLE(VARIATION_FONTS)
    404409    case FontVariationClass:
    405410        delete downcast<CSSFontVariationValue>(this);
    406411        return;
     412#endif
    407413    case FunctionClass:
    408414        delete downcast<CSSFunctionValue>(this);
Note: See TracChangeset for help on using the changeset viewer.