Crashes in WebCore::DocumentMarkerController::removeMarkersFromMarkerMapVectorPair...
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Nov 2010 23:55:30 +0000 (23:55 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Nov 2010 23:55:30 +0000 (23:55 +0000)
commitf5b6265f15ef1614bdb1d472b69b07d09d923481
tree343e5b0a4abb36ee189cff606acc09735879c418
parentc4a960761108ffa83d281b9d2c809277a4fdfbf3
Crashes in WebCore::DocumentMarkerController::removeMarkersFromMarkerMapVectorPair() when deleting multiple lines of text.
https://bugs.webkit.org/show_bug.cgi?id=48918
<rdar://problem/8620602>

Patch by Jia Pu <jpu@apple.com> on 2010-11-03
Reviewed by Darin Adler.

I haven't been able to found a reliable way to reproduce the bug. However, whenever it happens,
the crash is caused by a null node pointer returned by TextIterator. So it seems to be a
safe fix to guard against that.

* editing/Editor.cpp: (WebCore::Editor::removeSpellAndCorrectionMarkersFromWordsToBeEdited):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/editing/Editor.cpp