forked from WebKit/WebKit-http
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-multicol] Restore placeholders on multicolumn children position …
…changes. https://bugs.webkit.org/show_bug.cgi?id=218501 Reviewed by Zalan Bujtas. Whenever there is a placeholder in a multicolumn flow ("column-span: all") it must be ensured that the spanner associated to that placeholder is properly restored as a child of the multicolumn flow when the element with "column-span:all" is moved out of the multicolumn flow (for example by removing it, by making it out-of-flow or because an ancestor becomes another multicolumn flow). This was smoothly handled by the current code for the in-flow -> out-of-flow transition but not the other way around, i.e in the case of making the placeholder (or an ancestor) an absolutely positioned element. * rendering/updating/RenderTreeBuilder.cpp: (WebCore::RenderTreeBuilder::normalizeTreeAfterStyleChange): restore column spanners then the element becomes out-of-flow as it's removed from the multicolumn flow. * rendering/updating/RenderTreeBuilderMultiColumn.cpp: (WebCore::RenderTreeBuilder::MultiColumn::createFragmentedFlow): Call the newly created method restoreColumnSpannersForContainer(). (WebCore::RenderTreeBuilder::MultiColumn::restoreColumnSpannersForContainer): Refactored from createFragmentedFlow() as it's now used by normalizeTreeAfterStyleChange(). * rendering/updating/RenderTreeBuilderMultiColumn.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@271357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
svillar@igalia.com
committed
Jan 11, 2021
1 parent
55ed007
commit fdefed4
Showing
4 changed files
with
64 additions
and
26 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