SpinTracer: 349 spins in Mail at WebCore::Editor::advanceToNextMisspelling(bool)
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Dec 2009 21:43:38 +0000 (21:43 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Dec 2009 21:43:38 +0000 (21:43 +0000)
commit94e34c1b4f411625c755c219dfca5d8cd3718821
treedfb145bd154c76e1c8e31dba32dfec3584b2bff6
parent1b65abcf9a1584d6e4dbfe30320c4686611313ec
SpinTracer: 349 spins in Mail at WebCore::Editor::advanceToNextMisspelling(bool)
<rdar://problem/7198592>
https://bugs.webkit.org/show_bug.cgi?id=32129

Reviewed by John Sullivan.

Fixed the way the next paragraph is calculated.
I've added a repro case in Safari and attached it to the Bugzilla bug.

* editing/Editor.cpp:
(WebCore::findFirstMisspellingOrBadGrammarInRange): Changed the way we move to the
next paragraph in the loop.

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