Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7ab6ffc5799b18dd91a856d069bf1b3c8bb56a1f
      
https://github.com/WebKit/WebKit/commit/7ab6ffc5799b18dd91a856d069bf1b3c8bb56a1f
  Author: Alan Baradlay <[email protected]>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
    M Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp
    M Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h

  Log Message:
  -----------
  [IFC][Intrinsic width] Maximum content size may be computed during minimum 
phase in some limited cases
https://bugs.webkit.org/show_bug.cgi?id=267312

Reviewed by Antti Koivisto.

Let's compute the maximum content width between 2 forced line breaks and cache 
it.
'Preserve whitespace' type of text only content may reuse it as maximum content 
size.

* Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp: Hanging 
content is still there, it just does not count as content width.

(WebCore::Layout::Line::handleTrailingHangingContent):
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp:
(WebCore::Layout::mayUseContentWidthBetweenLineBreaksAsMaximumSize):
(WebCore::Layout::IntrinsicWidthHandler::maximumContentSize):
(WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicWidthForConstraint):
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h:

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to