[webkit-changes] [WebKit/WebKit] 61c1b8: Turning text-spacing properties into font properties

Vitor Roriz noreply at github.com
Thu Aug 24 03:45:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 61c1b82983f07f644c9e08fc37906f19037fafff
      https://github.com/WebKit/WebKit/commit/61c1b82983f07f644c9e08fc37906f19037fafff
  Author: Vitor Roriz <vitor.roriz at apple.com>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/platform/graphics/FontCascade.h
    M Source/WebCore/platform/graphics/FontCascadeDescription.cpp
    M Source/WebCore/platform/graphics/FontCascadeDescription.h
    M Source/WebCore/platform/graphics/FontDescription.h
    M Source/WebCore/rendering/style/RenderStyle.cpp
    M Source/WebCore/rendering/style/RenderStyle.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/rendering/style/RenderStyleSetters.h
    M Source/WebCore/rendering/style/StyleRareInheritedData.cpp
    M Source/WebCore/rendering/style/StyleRareInheritedData.h

  Log Message:
  -----------
  Turning text-spacing properties into font properties
https://bugs.webkit.org/show_bug.cgi?id=252660
rdar://105722440

Reviewed by Antti Koivisto.

We need turn text-spacing properties into font properties such that
they are accessible during FontCascade width calculations.

* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/platform/graphics/FontCascade.h:
(WebCore::FontCascade::textSpacingTrim const):
(WebCore::FontCascade::textAutospace const):
* Source/WebCore/platform/graphics/FontCascadeDescription.h:
(WebCore::FontCascadeDescription::initialTextSpacingTrim):
(WebCore::FontCascadeDescription::initialTextAutospace):
* Source/WebCore/platform/graphics/FontDescription.h:
(WebCore::FontDescription::textSpacingTrim const):
(WebCore::FontDescription::textAutospace const):
(WebCore::FontDescription::setTextSpacingTrim):
(WebCore::FontDescription::setTextAutospace):
(WebCore::FontDescription::operator== const):
(WebCore::FontDescription::encode const):
(WebCore::FontDescription::decode):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::textSpacingTrim const):
(WebCore::RenderStyle::textAutospace const):
(WebCore::RenderStyle::setTextSpacingTrim):
(WebCore::RenderStyle::setTextAutospace):
* Source/WebCore/rendering/style/RenderStyle.h:
(WebCore::RenderStyle::initialTextOrientation):
(WebCore::RenderStyle::setTextSpacingTrim): Deleted.
(WebCore::RenderStyle::setTextAutospace): Deleted.
(WebCore::RenderStyle::initialTextSpacingTrim): Deleted.
(WebCore::RenderStyle::initialTextAutospace): Deleted.
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
(WebCore::StyleRareInheritedData::operator== const):
* Source/WebCore/rendering/style/StyleRareInheritedData.h:

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




More information about the webkit-changes mailing list