[webkit-changes] [WebKit/WebKit] e625d4: [LFC][IFC] Introduce enclosingGlyphBoundsForText

Alan Baradlay noreply at github.com
Sun Oct 23 11:14:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e625d4554a73e54698c970b5f228ef17c9c95a26
      https://github.com/WebKit/WebKit/commit/e625d4554a73e54698c970b5f228ef17c9c95a26
  Author: Alan Bujtas <zalan at apple.com>
  Date:   2022-10-23 (Sun, 23 Oct 2022)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
    M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.h

  Log Message:
  -----------
  [LFC][IFC] Introduce enclosingGlyphBoundsForText
https://bugs.webkit.org/show_bug.cgi?id=246921

Reviewed by Antti Koivisto.

This is in preparation for supporting line-box-contain: glyphs, where the line box hugs the glyphs on the line.

* Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: Collect the max ascent/descent values of the current text content.
(WebCore::Layout::enclosingGlyphBoundsForRunWithIterator):
(WebCore::Layout::TextUtil::enclosingGlyphBoundsForText):
* Source/WebCore/layout/formattingContexts/inline/text/TextUtil.h:

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




More information about the webkit-changes mailing list