-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC][Cleanup] Simplify damage invalidation logic by specializing the…
… append case https://bugs.webkit.org/show_bug.cgi?id=270391 Reviewed by Antti Koivisto. When content gets appended we don't have DamagedContent which means we pass around it as std::optional to some helper functions. However these functions do very little (if anything at all) in std::null_opt cases. "leadingInlineItemPositionOnLastLine" function should be able to compute the leading inline item position without calling into those helpers. (This is also in preparation for fixing webkit.org/b/270388) * Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp: (WebCore::Layout::damagedLineIndex): (WebCore::Layout::leadingInlineItemPositionOnLastLine): (WebCore::Layout::damagedLineByDamagedBox): (WebCore::Layout::InlineInvalidation::textInserted): (WebCore::Layout::InlineInvalidation::textWillBeRemoved): (WebCore::Layout::InlineInvalidation::inlineLevelBoxInserted): (WebCore::Layout::InlineInvalidation::inlineLevelBoxWillBeRemoved): (WebCore::Layout::leadingInlineItemPositionForDamage): Deleted. (WebCore::Layout::leadingInlineItemPositionByDamagedBox): Deleted. Canonical link: https://commits.webkit.org/275604@main
- Loading branch information
1 parent
7795406
commit e72aac8
Showing
1 changed file
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters