Changeset 274387 in webkit
- Timestamp:
- Mar 13, 2021, 8:09:52 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
rendering/RenderListMarker.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r274386 r274387 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-13 Philippe Normand <pnormand@igalia.com> 2 19 -
trunk/Source/WebCore/rendering/RenderListMarker.cpp
r272805 r274387 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.