[webkit-changes] [WebKit/WebKit] c27796: Switch to use enum class for typesetterOptions() t...

Commit Queue noreply at github.com
Thu May 2 18:27:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c2779697d1c92e035f4d5f0a0dc900c3021af691
      https://github.com/WebKit/WebKit/commit/c2779697d1c92e035f4d5f0a0dc900c3021af691
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2024-05-02 (Thu, 02 May 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.mm

  Log Message:
  -----------
  Switch to use enum class for typesetterOptions() template in ComplexTextControllerCoreText.mm
https://bugs.webkit.org/show_bug.cgi?id=273109
<rdar://126898039>

Reviewed by Darin Adler.

* Source/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.mm:
(WebCore::CoreTextTypesetterEmbeddingLevel): Add enum.
(WebCore::buildCoreTextTypesetterEmbeddingLevelDictionary): Add.
- Extract common code out of typesetterOptions().
(WebCore::typesetterOptions):
- Call buildCoreTextTypesetterEmbeddingLevelDictionary().
(WebCore::ComplexTextController::collectComplexTextRunsForCharacters):
- Switch from bool value to CoreTextTypesetterEmbeddingLevel enum.

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