Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a36ad67bb5ff6713b4c0dbe49364439a56287f91
https://github.com/WebKit/WebKit/commit/a36ad67bb5ff6713b4c0dbe49364439a56287f91
Author: Alan Baradlay <[email protected]>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
A LayoutTests/fast/text/text-autospace-crash-on-partial-layout-expected.txt
A LayoutTests/fast/text/text-autospace-crash-on-partial-layout.html
M Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
Log Message:
-----------
[text-autospace] Disable partial layout when text-autospace is not initial
https://bugs.webkit.org/show_bug.cgi?id=292756
<rdar://145469725>
Reviewed by Antti Koivisto.
InlineItemsBuilder::computeInlineBoxBoundaryTextSpacings does not support
partial content handling.
* LayoutTests/fast/text/text-autospace-crash-on-partial-layout-expected.txt:
Added.
* LayoutTests/fast/text/text-autospace-crash-on-partial-layout.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:
(WebCore::Layout::InlineItemsBuilder::computeInlineBoxBoundaryTextSpacings):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp: In
addition to the root, let's check
individual inline boxes too (where text-autospace apply).
(WebCore::LayoutIntegration::shouldInvalidateLineLayoutPathAfterChangeFor):
make sure no arithmetic underflow happens when
we accidentally get here.
Canonical link: https://commits.webkit.org/294708@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