Changeset 244005 in webkit
- Timestamp:
- Apr 8, 2019, 5:38:56 AM (7 years ago)
- Location:
- releases/WebKitGTK/webkit-2.24
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/block/float/list-marker-is-float-crash-expected.txt (added)
-
LayoutTests/fast/block/float/list-marker-is-float-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderListMarker.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.24/LayoutTests/ChangeLog
r244003 r244005 1 2019-03-14 Zalan Bujtas <zalan@apple.com> 2 3 Cleanup inline boxes when list marker gets blockified 4 https://bugs.webkit.org/show_bug.cgi?id=195746 5 <rdar://problem/48049175> 6 7 Reviewed by Antti Koivisto. 8 9 * fast/block/float/list-marker-is-float-crash-expected.txt: Added. 10 * fast/block/float/list-marker-is-float-crash.html: Added. 11 1 12 2019-03-13 Zalan Bujtas <zalan@apple.com> 2 13 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/ChangeLog
r244004 r244005 1 2019-03-14 Zalan Bujtas <zalan@apple.com> 2 3 Cleanup inline boxes when list marker gets blockified 4 https://bugs.webkit.org/show_bug.cgi?id=195746 5 <rdar://problem/48049175> 6 7 Reviewed by Antti Koivisto. 8 9 Normally when an element gets blockified (inline -> block) we destroy its renderer and construct a new one (RenderInline -> RenderBlock). 10 During this process the associated inline boxtree gets destroyed as well. Since RenderListMarker is just a generic RenderBox, the blockifying 11 change does not require a new renderer. 12 This patch takes care of destroying the inline boxtree when the marker gains block display type. 13 14 Test: fast/block/float/list-marker-is-float-crash.html 15 16 * rendering/RenderListMarker.cpp: 17 (WebCore::RenderListMarker::styleDidChange): 18 1 19 2019-03-13 Zalan Bujtas <zalan@apple.com> 2 20 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/rendering/RenderListMarker.cpp
r244004 r244005 1145 1145 RenderBox::styleDidChange(diff, oldStyle); 1146 1146 1147 if (oldStyle && (style().listStylePosition() != oldStyle->listStylePosition() || style().listStyleType() != oldStyle->listStyleType())) 1148 setNeedsLayoutAndPrefWidthsRecalc(); 1147 if (oldStyle) { 1148 if (style().listStylePosition() != oldStyle->listStylePosition() || style().listStyleType() != oldStyle->listStyleType()) 1149 setNeedsLayoutAndPrefWidthsRecalc(); 1150 if (oldStyle->isDisplayInlineType() && !style().isDisplayInlineType()) { 1151 delete m_inlineBoxWrapper; 1152 m_inlineBoxWrapper = nullptr; 1153 } 1154 } 1149 1155 1150 1156 if (m_image != style().listStyleImage()) {
Note:
See TracChangeset
for help on using the changeset viewer.