[webkit-changes] [WebKit/WebKit] 1b8e79: Add font-width and alias font-stretch property

Alexsander Borges Damaceno noreply at github.com
Wed Dec 18 04:30:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1b8e7931f7fa1174b80f6f65401b84139aa59bd0
      https://github.com/WebKit/WebKit/commit/1b8e7931f7fa1174b80f6f65401b84139aa59bd0
  Author: Alexsander Damaceno <aemgbo at gmail.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M LayoutTests/fast/css/font-shorthand-expected.txt
    M LayoutTests/fast/css/getComputedStyle/computed-style-font-family-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/cssom/font-shorthand-serialization-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/property-list.js
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt
    M Source/WebCore/animation/CSSPropertyAnimation.cpp
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/css/CSSFontFace.cpp
    M Source/WebCore/css/CSSFontFace.h
    M Source/WebCore/css/CSSFontFaceSet.cpp
    M Source/WebCore/css/CSSFontSelector.cpp
    M Source/WebCore/css/CSSFontValue.cpp
    M Source/WebCore/css/CSSFontValue.h
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/css/FontFace.cpp
    M Source/WebCore/css/FontFace.h
    M Source/WebCore/css/FontFace.idl
    M Source/WebCore/css/FontSelectionValueInlines.h
    M Source/WebCore/css/ShorthandSerializer.cpp
    M Source/WebCore/css/parser/CSSPropertyParser.cpp
    M Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp
    M Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.h
    M Source/WebCore/css/typedom/CSSUnitValue.cpp
    M Source/WebCore/platform/graphics/FontCascadeDescription.h
    M Source/WebCore/platform/graphics/FontDescription.cpp
    M Source/WebCore/platform/graphics/FontDescription.h
    M Source/WebCore/platform/graphics/FontSelectionAlgorithm.cpp
    M Source/WebCore/platform/graphics/FontSelectionAlgorithm.h
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
    M Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp
    M Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp
    M Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp
    M Source/WebCore/platform/graphics/win/FontCacheWin.cpp
    M Source/WebCore/rendering/style/RenderStyle.cpp
    M Source/WebCore/rendering/style/RenderStyle.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/style/PropertyAllowlist.cpp
    M Source/WebCore/style/StyleBuilderConverter.h
    M Source/WebCore/style/StyleResolveForFont.cpp
    M Source/WebCore/svg/SVGElement.cpp
    M Source/WebCore/svg/svgattrs.in

  Log Message:
  -----------
  Add font-width and alias font-stretch property
https://bugs.webkit.org/show_bug.cgi?id=277673

Reviewed by Antoine Quint.

Add font-width and alias font-stretch property

* Source/WebCore/css/FontFace.cpp:
(WebCore::FontFace::setWidth):
(WebCore::FontFace::setWeight): Deleted.
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSFontFace.cpp:
(WebCore::calculateWidthRange):
(WebCore::CSSFontFace::setWidth):
(WebCore::CSSFontFace::width const):
(WebCore::calculateStretchRange): Deleted.
(WebCore::CSSFontFace::setStretch): Deleted.
(WebCore::CSSFontFace::stretch const): Deleted.
* Source/WebCore/css/CSSFontFace.h:
* Source/WebCore/css/CSSFontFaceSet.cpp:
(WebCore::computeFontSelectionRequest):
(WebCore::CSSFontFaceSet::fontFace):
* Source/WebCore/css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::addFontFaceRule):
* Source/WebCore/css/CSSFontValue.cpp:
(WebCore::CSSFontValue::customCSSText const):
(WebCore::CSSFontValue::equals const):
(WebCore::CSSFontValue::customVisitChildren const):
* Source/WebCore/css/CSSFontValue.h:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::valueForRepeatRule):
(WebCore::fontWidth):
(WebCore::fontShorthandValue):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
(WebCore::fontStretch): Deleted.
* Source/WebCore/css/FontFace.cpp:
(WebCore::FontFace::create):
(WebCore::FontFace::setWeight):
(WebCore::FontFace::setWidth):
(WebCore::FontFace::width const):
(WebCore::FontFace::setStretch): Deleted.
(WebCore::FontFace::stretch const): Deleted.
* Source/WebCore/css/FontFace.h:
* Source/WebCore/css/FontFace.idl:
* Source/WebCore/css/FontSelectionValueInlines.h:
(WebCore::fontWidthKeyword):
(WebCore::fontWidthValue):
(WebCore::fontStretchKeyword): Deleted.
(WebCore::fontStretchValue): Deleted.
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::fontWidthKeyword):
(WebCore::ShorthandSerializer::serializeFont const):
(WebCore::fontStretchKeyword): Deleted.
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::consumeFont):
(WebCore::initialValueForLonghand):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp:
(WebCore::CSSPropertyParserHelpers::parseFontFaceFontWidth):
(WebCore::CSSPropertyParserHelpers::consumeFontFaceFontWidth):
(WebCore::CSSPropertyParserHelpers::parseFontFaceFontStretch): Deleted.
(WebCore::CSSPropertyParserHelpers::consumeFontFaceFontStretch): Deleted.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.h:
* Source/WebCore/css/typedom/CSSUnitValue.cpp:
(WebCore::isValueOutOfRangeForProperty):
(WebCore::rangeForProperty):
* Source/WebCore/platform/graphics/FontCascadeDescription.h:
(WebCore::FontCascadeDescription::initialWidth):
(WebCore::FontCascadeDescription::initialStretch): Deleted.
* Source/WebCore/platform/graphics/FontDescription.cpp:
* Source/WebCore/platform/graphics/FontDescription.h:
(WebCore::FontDescription::width const):
(WebCore::FontDescription::setWidth):
(WebCore::FontDescription::stretch const): Deleted.
(WebCore::FontDescription::setStretch): Deleted.
* Source/WebCore/platform/graphics/FontSelectionAlgorithm.cpp:
(WebCore::FontSelectionAlgorithm::widthDistance const):
(WebCore::FontSelectionAlgorithm::indexOfBestCapabilities):
(WebCore::FontSelectionAlgorithm::stretchDistance const): Deleted.
* Source/WebCore/platform/graphics/FontSelectionAlgorithm.h:
(WebCore::ultraCondensedWidthValue):
(WebCore::extraCondensedWidthValue):
(WebCore::condensedWidthValue):
(WebCore::semiCondensedWidthValue):
(WebCore::normalWidthValue):
(WebCore::semiExpandedWidthValue):
(WebCore::expandedWidthValue):
(WebCore::extraExpandedWidthValue):
(WebCore::ultraExpandedWidthValue):
(WebCore::FontSelectionSpecifiedCapabilities::computeWidth const):
(WebCore::ultraCondensedStretchValue): Deleted.
(WebCore::extraCondensedStretchValue): Deleted.
(WebCore::condensedStretchValue): Deleted.
(WebCore::semiCondensedStretchValue): Deleted.
(WebCore::normalStretchValue): Deleted.
(WebCore::semiExpandedStretchValue): Deleted.
(WebCore::expandedStretchValue): Deleted.
(WebCore::extraExpandedStretchValue): Deleted.
(WebCore::ultraExpandedStretchValue): Deleted.
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::capabilitiesForFontDescriptor):
* Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp:
(WebCore::skiaFontStyle):
* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/platform/graphics/win/FontCacheWin.cpp:
(WebCore::traitsInFamilyEnumProc):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):
(WebCore::RenderStyle::setFontWidth):
(WebCore::RenderStyle::setFontStretch): Deleted.
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
(WebCore::RenderStyle::fontWidth const):
(WebCore::RenderStyle::fontStretch const): Deleted.
* Source/WebCore/style/PropertyAllowlist.cpp:
(WebCore::Style::isValidMarkerStyleProperty):
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertFontWidthFromValue):
(WebCore::Style::BuilderConverter::convertFontWidth):
(WebCore::Style::BuilderConverter::convertFontStretchFromValue): Deleted.
(WebCore::Style::BuilderConverter::convertFontStretch): Deleted.
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::cssPropertyIdForSVGAttributeName):
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertFontWidth):
(WebCore::Style::BuilderConverter::convertFontStretch): Deleted.
* Source/WebCore/style/StyleResolveForFont.cpp:
(WebCore::Style::fontStretchFromCSSValueDeprecated):
(WebCore::Style::fontStretchFromCSSValue):
* Source/WebCore/platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp:
(WebCore::SystemFontDatabaseCoreText::systemFontParameters):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp:
(WebCore::CSSPropertyParserHelpers::consumeFontFaceFontWidth):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.h:

* LayoutTests/fast/css/font-shorthand-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-font-family-expected.txt:
* LayoutTests/fast/text/font-face-javascript-expected.txt:
* LayoutTests/fast/text/font-loading-global-keyword-expected.txt:
* LayoutTests/fast/text/font-selection-font-face-parse-expected.txt:
* LayoutTests/fast/text/variations/font-loading-api-parse-ranges-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/container-inner-at-rules-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/animations/font-stretch-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-face-range-order-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/font-shorthand-serialization-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt:
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/property-list.js:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* Source/WebCore/css/FontFace.idl:
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::cssPropertyIdForSVGAttributeName):
* Source/WebCore/svg/svgattrs.in:
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::IDLAttributeNameToAnimationPropertyName):

Canonical link: https://commits.webkit.org/288000@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list