Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8db4e5f463b4aafd530af27bf3c3e2b8cd991155
      
https://github.com/WebKit/WebKit/commit/8db4e5f463b4aafd530af27bf3c3e2b8cd991155
  Author: Alan Baradlay <za...@apple.com>
  Date:   2025-09-01 (Mon, 01 Sep 2025)

  Changed paths:
    M 
Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp
    M 
Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
    M Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp
    M Source/WebCore/layout/formattingContexts/inline/LineLayoutResult.h

  Log Message:
  -----------
  [cleanup] Use LineLayoutResult's endsWithLineBreak to populate PreviousLine 
struct
https://bugs.webkit.org/show_bug.cgi?id=298151

Reviewed by Antti Koivisto.

This is a more accurate way to tell if the previous line ends with a line break 
(last run could very well be an out-of-flow box).

* Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp:
(WebCore::Layout::buildPreviousLine):
(WebCore::Layout::InlineContentConstrainer::initialize):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::lineLayout):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
(WebCore::Layout::InlineFormattingUtils::inlineContentEnding):
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp:
(WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicWidthForConstraint):
* Source/WebCore/layout/formattingContexts/inline/LineLayoutResult.h:
(WebCore::Layout::LineLayoutResult::endsWithLineBreak const):

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



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

Reply via email to