Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[LFC] LayoutState should always be initialized with the initial conta…
…ining block. https://bugs.webkit.org/show_bug.cgi?id=191896 Reviewed by Antti Koivisto. There should always be only one LayoutState per layout tree (it does not mean that layout always starts at the ICB). The ICB is a special formatting context root because it does not have a parent formatting context. All the other formatting contexts first need to be laid out (partially at least e.g margin) in their parent formatting context. Having a non-null parent formatting context as root could lead to undefined behaviour. * layout/LayoutFormattingState.cpp: (WebCore::Layout::LayoutState::LayoutState): (WebCore::Layout::LayoutState::initializeRoot): Deleted. * layout/LayoutFormattingState.h: * layout/Verification.cpp: (WebCore::Layout::LayoutState::verifyAndOutputMismatchingLayoutTree const): * page/FrameViewLayoutContext.cpp: (WebCore::layoutUsingFormattingContext): Canonical link: https://commits.webkit.org/206601@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
37 additions
and 21 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
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