Changeset 276546 in webkit
- Timestamp:
- Apr 23, 2021, 11:11:00 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
editing/IndentOutdentCommand.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r276530 r276546 1 2021-04-23 Ian Gilbert <iang@apple.com> 2 3 Crash in IndentOutdentCommand::outdentParagraph attempting to move a paragraph 4 https://bugs.webkit.org/show_bug.cgi?id=224909 5 6 Reviewed by Ryosuke Niwa. 7 8 Added check inside IndentOutdentCommand::outdentParagraph to ensure that inserting a 9 HTMLBRElement was successful before attempting to move a paragraph to that node. 10 11 * editing/IndentOutdentCommand.cpp: 12 (WebCore::IndentOutdentCommand::outdentParagraph): 13 1 14 2021-04-23 Ryosuke Niwa <rniwa@webkit.org> 2 15 -
trunk/Source/WebCore/editing/IndentOutdentCommand.cpp
r266557 r276546 192 192 } 193 193 auto placeholder = HTMLBRElement::create(document()); 194 auto* placeholderPtr = placeholder.ptr();195 i nsertNodeBefore(WTFMove(placeholder), *splitBlockquoteNode);196 moveParagraph(startOfParagraph(visibleStartOfParagraph), endOfParagraph(visibleEndOfParagraph), positionBeforeNode(placeholderPtr), true);194 insertNodeBefore(placeholder, *splitBlockquoteNode); 195 if (placeholder->isConnected()) 196 moveParagraph(startOfParagraph(visibleStartOfParagraph), endOfParagraph(visibleEndOfParagraph), positionBeforeNode(placeholder.ptr()), true); 197 197 } 198 198
Note:
See TracChangeset
for help on using the changeset viewer.