Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7b69aa464966082576980e883b067aa384e0e3a7
https://github.com/WebKit/WebKit/commit/7b69aa464966082576980e883b067aa384e0e3a7
Author: Antti Koivisto <[email protected]>
Date: 2026-10-12 (Mon, 12 Oct 2026)
Changed paths:
A
LayoutTests/fast/inline/remove-leading-content-after-out-of-flow-box-expected.html
A LayoutTests/fast/inline/remove-leading-content-after-out-of-flow-box.html
M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayBox.h
M
Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp
Log Message:
-----------
[IFC] Partial layout damage can start at an inline item of the removed box
https://bugs.webkit.org/show_bug.cgi?id=327242
rdar://problem/189801792
Reviewed by Alan Baradlay.
Removing text or a <br> that leads the first line after out-of-flow content can
put the damage on an inline item of the removed box, which the partial inline
item rebuild then fails to find in the box tree.
Fall back to full invalidation in that case, and make InlineDisplay::Box
equality compare layout box pointers without dereferencing them.
*
LayoutTests/fast/inline/remove-leading-content-after-out-of-flow-box-expected.html:
Added.
* LayoutTests/fast/inline/remove-leading-content-after-out-of-flow-box.html:
Added.
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayBox.h:
(WebCore::InlineDisplay::operator==):
*
Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp:
(WebCore::Layout::startsAtRemovedBox):
(WebCore::Layout::InlineInvalidation::textWillBeRemoved):
(WebCore::Layout::InlineInvalidation::inlineLevelBoxWillBeRemoved):
Canonical link: https://commits.webkit.org/323458@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications