[webkit-changes] [WebKit/WebKit] 6a0c0b: Adopt more smart pointers in WidthIterator

Chris Dumez noreply at github.com
Thu Nov 2 15:03:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6a0c0be86c69992d84adf54c1c83bc46b8617a8d
      https://github.com/WebKit/WebKit/commit/6a0c0be86c69992d84adf54c1c83bc46b8617a8d
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-11-02 (Thu, 02 Nov 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/FontCascade.cpp
    M Source/WebCore/platform/graphics/FontCascade.h
    M Source/WebCore/platform/graphics/TextRun.cpp
    M Source/WebCore/platform/graphics/TextRun.h
    M Source/WebCore/platform/graphics/WidthIterator.cpp
    M Source/WebCore/platform/graphics/WidthIterator.h
    M Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp

  Log Message:
  -----------
  Adopt more smart pointers in WidthIterator
https://bugs.webkit.org/show_bug.cgi?id=264052

Reviewed by Ryosuke Niwa.

Adopt more smart pointers in WidthIterator. This tested as performance
neutral on the benchmark we track.

* Source/WebCore/platform/graphics/FontCascade.h:
* Source/WebCore/platform/graphics/TextRun.cpp:
* Source/WebCore/platform/graphics/TextRun.h:
* Source/WebCore/platform/graphics/WidthIterator.cpp:
(WebCore::WidthIterator::WidthIterator):
(WebCore::WidthIterator::applyFontTransforms):
(WebCore::WidthIterator::hasExtraSpacing const):
(WebCore::WidthIterator::advanceInternal):
(WebCore::WidthIterator::calculateAdditionalWidth const):
(WebCore::WidthIterator::applyExtraSpacingAfterShaping):
(WebCore::WidthIterator::applyCSSVisibilityRules):
(WebCore::WidthIterator::advance):
* Source/WebCore/platform/graphics/WidthIterator.h:

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




More information about the webkit-changes mailing list