[Webkit-unassigned] [Bug 13940] Enabling spellchecking slows down selection even when nothing is editable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 30 16:33:25 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13940


justin.garcia at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #1 from justin.garcia at apple.com  2007-05-30 16:33 PDT -------
If the selection is not editable then all we do is [from Frame.cpp]:

if (RefPtr<Range> wordRange = newAdjacentWords.toRange())
    document()->removeMarkers(wordRange.get(), DocumentMarker::Spelling);
if (RefPtr<Range> sentenceRange = newSelectedSentence.toRange())
    document()->removeMarkers(sentenceRange.get(), DocumentMarker::Grammar);

Which will do very little work since the selections newSelected{Word, Sentence}
are both empty.

And:

if (!isContinuousSpellCheckingEnabled)
    document()->removeMarkers(DocumentMarker::Spelling);
if (!isContinuousGrammarCheckingEnabled)
    document()->removeMarkers(DocumentMarker::Grammar);

Which will also do very little since there will be no markers.

I can't reproduce the slowness you describe.  Are you using the latest nightly?


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list