[webkit-changes] [WebKit/WebKit] e02c95: [IFC] Let's use RangeBasedLineBuilder for inline b...

Alan Baradlay noreply at github.com
Fri Feb 28 18:12:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e02c95667a90193b10aaf5f8a88828108689ac6d
      https://github.com/WebKit/WebKit/commit/e02c95667a90193b10aaf5f8a88828108689ac6d
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2025-02-28 (Fri, 28 Feb 2025)

  Changed paths:
    M LayoutTests/platform/ios/fast/forms/form-in-malformed-markup-expected.txt
    M LayoutTests/platform/mac/fast/forms/form-in-malformed-markup-expected.txt
    M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
    M Source/WebCore/layout/formattingContexts/inline/RangeBasedLineBuilder.cpp
    M Source/WebCore/layout/formattingContexts/inline/RangeBasedLineBuilder.h

  Log Message:
  -----------
  [IFC] Let's use RangeBasedLineBuilder for inline box content only too
https://bugs.webkit.org/show_bug.cgi?id=288801

Reviewed by Antti Koivisto.

RangeBasedLineBuilder can layout content where text is enclosed by an inline box e.g.
<div><span>this text only content is enclosed by an inline box</span></div>

This change enables RangeBasedLineBuilder to layout inline content where there's
no enclosed inline items e.g.

<div><span></span></div>

*fast/forms/form-in-malformed-markup: geometry progression on empty inline box.

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layout):
* Source/WebCore/layout/formattingContexts/inline/RangeBasedLineBuilder.cpp:
(WebCore::Layout::RangeBasedLineBuilder::RangeBasedLineBuilder):
(WebCore::Layout::RangeBasedLineBuilder::layoutInlineContent):
(WebCore::Layout::RangeBasedLineBuilder::isEligibleForRangeInlineLayout):
* Source/WebCore/layout/formattingContexts/inline/RangeBasedLineBuilder.h:

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



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


More information about the webkit-changes mailing list