[webkit-changes] [WebKit/WebKit] d4f8ca: [IFC][SVG text] Compute inline box boundaries

Antti Koivisto noreply at github.com
Fri Dec 6 08:31:02 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d4f8ca8ffac838dd9db82dc67b830005a1d230e7
      https://github.com/WebKit/WebKit/commit/d4f8ca8ffac838dd9db82dc67b830005a1d230e7
  Author: Antti Koivisto <antti at apple.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.h
    M Source/WebCore/rendering/RenderInline.cpp
    M Source/WebCore/rendering/svg/RenderSVGText.cpp

  Log Message:
  -----------
  [IFC][SVG text] Compute inline box boundaries
https://bugs.webkit.org/show_bug.cgi?id=284155
rdar://141038641

Reviewed by Alan Baradlay.

* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::applySVGTextFragments):

Computed bounds for inline boxes based on their desdendant text content.

* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.h:
* Source/WebCore/rendering/RenderInline.cpp:
(WebCore::RenderInline::linesBoundingBox const):

Use the inline box bounds instead of box geometry which is not correct after adjustements.

* Source/WebCore/rendering/svg/RenderSVGText.cpp:
(WebCore::RenderSVGText::computePerCharacterLayoutInformation):

Use overall bounds computed by applySVGTextFragments for positioning the text box.

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