Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r220858 - RenderListItem - Avoid render tree mutation during la…
…yout https://bugs.webkit.org/show_bug.cgi?id=175666 Reviewed by Andreas Kling. Source/WebCore: Mutations should be done by RenderTreeUpdater only. * rendering/RenderListItem.cpp: (WebCore::RenderListItem::updateMarkerRenderer): This is now called by RenderTreeUpdater only. Remove code dealing with this being called at layout time. Merged marker construction code from styleDidChange here and renamed for clarity. (WebCore::RenderListItem::layout): (WebCore::RenderListItem::computePreferredLogicalWidths): Remove mutating calls. (WebCore::RenderListItem::styleDidChange): Deleted. (WebCore::RenderListItem::insertOrMoveMarkerRendererIfNeeded): Deleted. * rendering/RenderListItem.h: * rendering/TextAutoSizing.cpp: (WebCore::TextAutoSizingValue::adjustTextNodeSizes): Call updateMarkerRenderer. * style/RenderTreeUpdater.cpp: (WebCore::RenderTreeUpdater::popParent): (WebCore::RenderTreeUpdater::updateBeforeOrAfterPseudoElement): Call updateMarkerRenderer. LayoutTests: Changes in render tree dumps that don't affect rendering. * platform/ios/fast/doctypes/002-expected.txt: * platform/ios/fast/lists/marker-before-empty-inline-expected.txt: * platform/mac/css2.1/t0805-c5520-brdr-b-01-e-expected.txt: * platform/mac/fast/doctypes/002-expected.txt: * platform/mac/fast/lists/marker-before-empty-inline-expected.txt:
- Loading branch information
1 parent
b754a98
commit b81a71e
Showing
11 changed files
with
95 additions
and
63 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
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
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