Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cb41c1ecf93d77be6e322926c5d4578b04750a18
      
https://github.com/WebKit/WebKit/commit/cb41c1ecf93d77be6e322926c5d4578b04750a18
  Author: Alan Baradlay <[email protected]>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

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

  Log Message:
  -----------
  [cleanup] Defer inline box ink overflow computation to 
collectInkOverflowForInlineBoxes
https://bugs.webkit.org/show_bug.cgi?id=311052

Reviewed by Antti Koivisto.

Move all inline box ink overflow inflation (outline, box-shadow, text
emphasis) from the inline box construction phase to
collectInkOverflowForInlineBoxes, where it is applied after children's
ink overflow has been propagated. This is a refactor with no behavior
change - the inflation is still applied to the inline box's own visual
rect. This is in preparation for adding hugging outline support for
inline boxes where we need to take child content into account.

Introduce hasInlineBoxInkOverflow as the check function, and repurpose
computeInkOverflowForInlineBox as the deferred inflation helper taking
the layout box and root box instead of InlineLevelBox.

* 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::hasInlineBoxInkOverflow):
(WebCore::Layout::computeInkOverflowForInlineBox):
(WebCore::Layout::InlineDisplayContentBuilder::appendInlineBoxDisplayBox):
(WebCore::Layout::InlineDisplayContentBuilder::adjustVisualGeometryForDisplayBox):
(WebCore::Layout::InlineDisplayContentBuilder::collectInkOverflowForInlineBoxes):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to