Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b9dc5b0c1bb4f40ed59d4e87d1c2e02a24491f58
      
https://github.com/WebKit/WebKit/commit/b9dc5b0c1bb4f40ed59d4e87d1c2e02a24491f58
  Author: Yulun Wu <[email protected]>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    A 
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-balance-with-absolute-positioned-element-expected.html
    A 
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-balance-with-absolute-positioned-element.html
    M 
Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp

  Log Message:
  -----------
  [Text-Wrap][Balance][Pretty] Ignore out-of-flow elements when computing line 
constraints.
https://bugs.webkit.org/show_bug.cgi?id=294085
<rdar://152549818>

Reviewed by Alan Baradlay.

This PR updates the InlineContentConstrainer to ignore opaque inline items when 
performing width computations.

Combined changes:
* 
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-balance-with-absolute-positioned-element-expected.html:
 Added.
* 
LayoutTests/fast/css3-text/css3-text-wrap/text-wrap-balance-with-absolute-positioned-element.html:
 Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp:
(WebCore::Layout::InlineContentConstrainer::updateCachedWidths):
(WebCore::Layout::InlineContentConstrainer::checkCanConstrainInlineItems):
(WebCore::Layout::InlineContentConstrainer::inlineItemWidth const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to