Changeset 259595 in webkit
- Timestamp:
- Apr 6, 2020, 2:44:11 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/style-change-draggable-text-expected.txt (added)
-
LayoutTests/fast/css/style-change-draggable-text.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/editing/CompositeEditCommand.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r259593 r259595 1 2020-04-06 Jack Lee <shihchieh_lee@apple.com> 2 3 Nullptr crash in CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary with draggable text 4 https://bugs.webkit.org/show_bug.cgi?id=209999 5 <rdar://problem/58978340> 6 7 Reviewed by Ryosuke Niwa. 8 9 Added a regression test for the crash. 10 11 * fast/css/style-change-draggable-text-expected.txt: Added. 12 * fast/css/style-change-draggable-text.html: Added. 13 1 14 2020-04-06 Jer Noble <jer.noble@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r259594 r259595 1 2020-04-06 Jack Lee <shihchieh_lee@apple.com> 2 3 Nullptr crash in CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary with draggable text 4 https://bugs.webkit.org/show_bug.cgi?id=209999 5 <rdar://problem/58978340> 6 7 Reviewed by Ryosuke Niwa. 8 9 VisibleParagraphStart/End may return empty VisiblePosition if no proper element or node 10 can be used as position candidate. Add null check for the returned VisiblePositions. 11 12 Test: fast/css/style-change-draggable-text.html 13 14 * editing/CompositeEditCommand.cpp: 15 (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): 16 1 17 2020-04-06 Jer Noble <jer.noble@apple.com> 2 18 -
trunk/Source/WebCore/editing/CompositeEditCommand.cpp
r259575 r259595 1160 1160 VisiblePosition visibleParagraphStart(startOfParagraph(visiblePos)); 1161 1161 VisiblePosition visibleParagraphEnd = endOfParagraph(visiblePos); 1162 if (visibleParagraphStart.isNull() || visibleParagraphEnd.isNull()) 1163 return nullptr; 1164 1162 1165 VisiblePosition next = visibleParagraphEnd.next(); 1163 1166 VisiblePosition visibleEnd = next.isNotNull() ? next : visibleParagraphEnd;
Note:
See TracChangeset
for help on using the changeset viewer.