[webkit-changes] [WebKit/WebKit] c00cc8: text-spacing: text-spacing-trim: Avoid character c...

Vitor Roriz noreply at github.com
Wed Oct 16 16:41:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c00cc818dc4323829e07854fb7ca2151f2d99eaf
      https://github.com/WebKit/WebKit/commit/c00cc818dc4323829e07854fb7ca2151f2d99eaf
  Author: Vitor Roriz <vitor.roriz at apple.com>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/WidthIterator.cpp

  Log Message:
  -----------
  text-spacing: text-spacing-trim: Avoid character class computation when not needed
https://bugs.webkit.org/show_bug.cgi?id=281629
rdar://problem/138067688

Reviewed by Sammy Gill.

This patch avoids character class computation if it is not necessary, i.e.:
when text-spacing-trim is space-all.

We already return early from shouldApplySpacing when text-spacing-trim: space-all is set
but we are still computing character's class, which is not necessary in such case.

* Source/WebCore/platform/graphics/WidthIterator.cpp:
(WebCore::WidthIterator::advanceInternal):

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