[webkit-changes] [WebKit/WebKit] 25f2b3: Incorrect ink overflow with large negative letter ...

Alan Baradlay noreply at github.com
Wed Aug 9 11:20:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 25f2b3015a2c7ab27dca9e552ca41ddfb44670e4
      https://github.com/WebKit/WebKit/commit/25f2b3015a2c7ab27dca9e552ca41ddfb44670e4
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    A LayoutTests/fast/text/large-negative-letter-spacing-ink-overflow-expected.html
    A LayoutTests/fast/text/large-negative-letter-spacing-ink-overflow.html
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp

  Log Message:
  -----------
  Incorrect ink overflow with large negative letter spacing
https://bugs.webkit.org/show_bug.cgi?id=259975

Reviewed by Antti Koivisto.

Large negative letter spacing (where abs(letter spacing value) is larger than the glyphs themselves) may produce text box with
negative width and no ink overflow.
This patch turns such negative text box size into ink overflow.

* LayoutTests/fast/text/large-negative-letter-spacing-ink-overflow-expected.html: Added.
* LayoutTests/fast/text/large-negative-letter-spacing-ink-overflow.html: Added.
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::appendTextDisplayBox):

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




More information about the webkit-changes mailing list