[webkit-changes] [WebKit/WebKit] 3c1feb: [IFC][Text combine] Add support for combined text ...

Alan Baradlay noreply at github.com
Sat Nov 26 07:26:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3c1feb0fcadb2cc7c45c0ac329dac9e2e1c47fff
      https://github.com/WebKit/WebKit/commit/3c1feb0fcadb2cc7c45c0ac329dac9e2e1c47fff
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2022-11-26 (Sat, 26 Nov 2022)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp
    M Source/WebCore/layout/integration/inline/InlineIteratorBoxModernPath.h

  Log Message:
  -----------
  [IFC][Text combine] Add support for combined text hittest
https://bugs.webkit.org/show_bug.cgi?id=248352

Reviewed by Antti Koivisto.

The "original" text for combined content is the "object replacement" character, while the "rendered" text is the actual combined content.
Selection (and marked text painting) needs the full content length set in TextBoxSelectableRange::additionalLengthAtEnd.

* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::appendTextDisplayBox):
* Source/WebCore/layout/integration/inline/InlineIteratorBoxModernPath.h:
(WebCore::InlineIterator::BoxModernPath::selectableRange const):

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




More information about the webkit-changes mailing list