Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.