[webkit-changes] [WebKit/WebKit] 2148fe: @font-face size-adjust: Implement parser (255768)

Vitor Roriz noreply at github.com
Fri Apr 21 10:12:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2148febf9f0ee349f1c85c9c61f018a11e61fd92
      https://github.com/WebKit/WebKit/commit/2148febf9f0ee349f1c85c9c61f018a11e61fd92
  Author: Vitor Roriz <vitor.roriz at apple.com>
  Date:   2023-04-21 (Fri, 21 Apr 2023)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-size-adjust-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-size-adjust.html
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/css/CSSFontFace.cpp
    M Source/WebCore/css/CSSFontFace.h
    M Source/WebCore/css/CSSFontSelector.cpp
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/platform/graphics/FontCreationContext.h

  Log Message:
  -----------
  @font-face size-adjust: Implement parser (255768)
https://bugs.webkit.org/show_bug.cgi?id=255768
rdar://108357839

Reviewed by Tim Nguyen.

Implement parser for @font-face size-adjust descriptor according to
 https://www.w3.org/TR/css-fonts-5/#size-adjust-desc

* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-size-adjust-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-face-size-adjust.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/css/CSSFontFace.cpp:
(WebCore::CSSFontFace::setSizeAdjust):
(WebCore::CSSFontFace::sizeAdjust const):
(WebCore::CSSFontFace::font):
* Source/WebCore/css/CSSFontFace.h:
* Source/WebCore/css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::addFontFaceRule):
(WebCore::CSSFontSelector::fontRangesForFamily):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/platform/graphics/FontCreationContext.h:
(WebCore::FontCreationContextRareData::create):
(WebCore::FontCreationContextRareData::sizeAdjust const):
(WebCore::FontCreationContextRareData::operator== const):
(WebCore::FontCreationContextRareData::FontCreationContextRareData):
(WebCore::FontCreationContext::FontCreationContext):
(WebCore::FontCreationContext::sizeAdjust const):
(WebCore::add):

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




More information about the webkit-changes mailing list