-
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] InlineDamage::type is redundant
https://bugs.webkit.org/show_bug.cgi?id=271533 Reviewed by Antti Koivisto. 1. Content and/or style change always initiates InlineDamage (with a reason) 2. Partial layout happens when - there's an InlineDamage and - we manage to figure out a start layout position for all the damages (in many cases there's only one change) There may be cases with multiple changes when - we manage to find the layout position (partial layout candidate) for the first damage - but fail at a subsequent change In such cases we reset the "layout start position" indicating full layout, but we keep the reason. (in other words, decouple reason(s) the partial layout) This setups renders InlineDamage::Type::Invalid redundant. However we can't just destroy m_inlineDamage as we have to keep it around for "detached" content. * Source/WebCore/layout/formattingContexts/inline/invalidation/InlineDamage.h: (WebCore::Layout::InlineDamage::setDamageReason): (WebCore::Layout::InlineDamage::resetLayoutPosition): (WebCore::Layout::InlineDamage::type const): Deleted. (WebCore::Layout::InlineDamage::setDamageType): Deleted. (WebCore::Layout::InlineDamage::reset): Deleted. * Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp: (WebCore::Layout::InlineInvalidation::updateInlineDamage): (WebCore::Layout::InlineInvalidation::setFullLayoutIfNeeded): (WebCore::Layout::InlineInvalidation::textInserted): (WebCore::Layout::InlineInvalidation::textWillBeRemoved): (WebCore::Layout::InlineInvalidation::inlineLevelBoxInserted): (WebCore::Layout::InlineInvalidation::inlineLevelBoxWillBeRemoved): (WebCore::Layout::InlineInvalidation::restartForPagination): (WebCore::Layout::InlineInvalidation::applyFullDamageIfNeeded): Deleted. * Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.h: Canonical link: https://commits.webkit.org/276617@main
- Loading branch information
1 parent
8763b25
commit cc88128
Showing
3 changed files
with
47 additions
and
50 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
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
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