[webkit-changes] [WebKit/WebKit] 57d1e9: [GTK] `hyphens: auto` text is not hyphenated when ...

Vitaly Dyachkov noreply at github.com
Thu Aug 1 06:46:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 57d1e9e10bb4550e80a75af18832d9f15a81f18d
      https://github.com/WebKit/WebKit/commit/57d1e9e10bb4550e80a75af18832d9f15a81f18d
  Author: Vitaly Dyachkov <vitaly at igalia.com>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M LayoutTests/platform/glib/TestExpectations
    R LayoutTests/platform/glib/fast/text/simple-line-hyphens-with-text-align-expected.html
    R LayoutTests/platform/glib/fast/text/simple-line-hyphens-with-word-letter-spacing-expected.html
    R LayoutTests/platform/glib/fast/text/simple-line-layout-hyphen-limit-after-expected.html
    R LayoutTests/platform/glib/fast/text/simple-line-layout-hyphen-limit-before-expected.html
    R LayoutTests/platform/glib/fast/text/simple-line-layout-hyphen-limit-lines-expected.html
    M LayoutTests/platform/gtk/fast/text/hyphenate-locale-expected.png
    M LayoutTests/platform/gtk/fast/text/hyphenate-locale-expected.txt
    A LayoutTests/platform/gtk/fast/text/simple-line-hyphens-with-text-align-expected.html
    A LayoutTests/platform/gtk/fast/text/simple-line-hyphens-with-word-letter-spacing-expected.html
    A LayoutTests/platform/gtk/fast/text/simple-line-layout-hyphen-limit-after-expected.html
    A LayoutTests/platform/gtk/fast/text/simple-line-layout-hyphen-limit-before-expected.html
    A LayoutTests/platform/gtk/fast/text/simple-line-layout-hyphen-limit-lines-expected.html
    A LayoutTests/platform/wpe/fast/text/simple-line-hyphens-with-text-align-expected.html
    A LayoutTests/platform/wpe/fast/text/simple-line-hyphens-with-word-letter-spacing-expected.html
    A LayoutTests/platform/wpe/fast/text/simple-line-layout-hyphen-limit-after-expected.html
    A LayoutTests/platform/wpe/fast/text/simple-line-layout-hyphen-limit-before-expected.html
    A LayoutTests/platform/wpe/fast/text/simple-line-layout-hyphen-limit-lines-expected.html
    M Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp

  Log Message:
  -----------
  [GTK] `hyphens: auto` text is not hyphenated when `lang` attribute is not set
https://bugs.webkit.org/show_bug.cgi?id=277476

Reviewed by Carlos Garcia Campos.

While the spec https://drafts.csswg.org/css-text/#hyphens-property
requires the `lang` attribute to be set for hyphenation to work,
Apple ports fall back to the default language when it's not.
We should do the same for compatibility.

* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/gtk/fast/text/hyphenate-locale-expected.png:
* LayoutTests/platform/gtk/fast/text/hyphenate-locale-expected.txt:
* LayoutTests/platform/gtk/fast/text/simple-line-hyphens-with-text-align-expected.html: Added.
* LayoutTests/platform/gtk/fast/text/simple-line-hyphens-with-word-letter-spacing-expected.html: Added.
* LayoutTests/platform/gtk/fast/text/simple-line-layout-hyphen-limit-after-expected.html: Added.
* LayoutTests/platform/gtk/fast/text/simple-line-layout-hyphen-limit-before-expected.html: Added.
* LayoutTests/platform/gtk/fast/text/simple-line-layout-hyphen-limit-lines-expected.html: Added.
* LayoutTests/platform/wpe/fast/text/simple-line-hyphens-with-text-align-expected.html: Renamed from LayoutTests/platform/glib/fast/text/simple-line-hyphens-with-text-align-expected.html.
* LayoutTests/platform/wpe/fast/text/simple-line-hyphens-with-word-letter-spacing-expected.html: Renamed from LayoutTests/platform/glib/fast/text/simple-line-hyphens-with-word-letter-spacing-expected.html.
* LayoutTests/platform/wpe/fast/text/simple-line-layout-hyphen-limit-after-expected.html: Renamed from LayoutTests/platform/glib/fast/text/simple-line-layout-hyphen-limit-after-expected.html.
* LayoutTests/platform/wpe/fast/text/simple-line-layout-hyphen-limit-before-expected.html: Renamed from LayoutTests/platform/glib/fast/text/simple-line-layout-hyphen-limit-before-expected.html.
* LayoutTests/platform/wpe/fast/text/simple-line-layout-hyphen-limit-lines-expected.html: Renamed from LayoutTests/platform/glib/fast/text/simple-line-layout-hyphen-limit-lines-expected.html.
* Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp:
(WebCore::canHyphenate):
(WebCore::lastHyphenLocation):

Canonical link: https://commits.webkit.org/281705@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