Changeset 280892 in webkit
- Timestamp:
- Aug 11, 2021, 3:13:25 AM (5 years ago)
- Location:
- releases/WebKitGTK/webkit-2.32/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
rendering/RenderListMarker.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog
r280891 r280892 1 2021-03-13 Zalan Bujtas <zalan@apple.com> 2 3 Mark the line dirty when list marker goes from inline to block 4 https://bugs.webkit.org/show_bug.cgi?id=223132 5 6 Reviewed by Antti Koivisto. 7 8 This patch ensures that the line layout has a chance to clean up the inline boxes when the marker goes from inline to block. 9 Instead of deleting the inline box wrapper (InlineElement) here let's 10 1. mark both the renderer and the line dirty and let the inline layout code run its normal cleanup process on dirty lines. 11 2. detach the inline box wrapper from the now-block list marker. 12 13 * rendering/RenderListMarker.cpp: 14 (WebCore::RenderListMarker::styleDidChange): 15 * rendering/RootInlineBox.cpp: 16 (WebCore::RootInlineBox::verticalPositionForBox): 17 1 18 2021-03-12 Rob Buis <rbuis@igalia.com> 2 19 -
releases/WebKitGTK/webkit-2.32/Source/WebCore/rendering/RenderListMarker.cpp
r272805 r280892 1094 1094 setNeedsLayoutAndPrefWidthsRecalc(); 1095 1095 if (oldStyle->isDisplayInlineType() && !style().isDisplayInlineType()) { 1096 delete m_inlineBoxWrapper; 1096 setNeedsLayoutAndPrefWidthsRecalc(); 1097 if (m_inlineBoxWrapper) 1098 m_inlineBoxWrapper->dirtyLineBoxes(); 1097 1099 m_inlineBoxWrapper = nullptr; 1098 1100 }
Note:
See TracChangeset
for help on using the changeset viewer.