Changeset 207683 in webkit
- Timestamp:
- Oct 21, 2016, 10:39:17 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/lists/crash-when-list-marker-is-moved-during-selection-expected.txt (added)
-
LayoutTests/fast/lists/crash-when-list-marker-is-moved-during-selection.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderListItem.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r207675 r207683 1 2016-10-21 Zalan Bujtas <zalan@apple.com> 2 3 Do not mutate the render tree while collecting selection repaint rects. 4 https://bugs.webkit.org/show_bug.cgi?id=163800 5 <rdar://problem/28806886> 6 7 Reviewed by David Hyatt. 8 9 * fast/lists/crash-when-list-marker-is-moved-during-selection-expected.txt: Added. 10 * fast/lists/crash-when-list-marker-is-moved-during-selection.html: Added. 11 1 12 2016-10-21 Miguel Gomez <magomez@igalia.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r207682 r207683 1 2016-10-21 Zalan Bujtas <zalan@apple.com> 2 3 Do not mutate the render tree while collecting selection repaint rects. 4 https://bugs.webkit.org/show_bug.cgi?id=163800 5 <rdar://problem/28806886> 6 7 Reviewed by David Hyatt. 8 9 RenderListItem not only mutates the tree while in layout but it also uses 10 the old descendant context to find the insertion point. 11 This patch strictly ensures that we only do it while in layout and never 12 in other cases such as collecting repaint rects. 13 This gets redundant when webkit.org/b/163789 is fixed. 14 15 Test: fast/lists/crash-when-list-marker-is-moved-during-selection.html 16 17 * rendering/RenderListItem.cpp: 18 (WebCore::RenderListItem::insertOrMoveMarkerRendererIfNeeded): 19 1 20 2016-10-21 Dave Hyatt <hyatt@apple.com> 2 21 -
trunk/Source/WebCore/rendering/RenderListItem.cpp
r206765 r207683 267 267 // Sanity check the location of our marker. 268 268 if (!m_marker) 269 return; 270 271 // FIXME: Do not even try reposition the marker when we are not in layout 272 // until after we fixed webkit.org/b/163789. 273 if (!view().frameView().isInRenderTreeLayout()) 269 274 return; 270 275
Note:
See TracChangeset
for help on using the changeset viewer.