2006-07-14 Anders Carlsson <acarlsson@apple.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2006 20:54:09 +0000 (20:54 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2006 20:54:09 +0000 (20:54 +0000)
commit6fd0c0dc9d7ef0cfdbaefb2672e04508aba15847
tree172fbcd78bbd56e33ba6c2ae13587c65a5c540f1
parent9d3f8493cc57cc0a1c01a73fb8ec3335c662e86c
2006-07-14  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Adele and Justin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9658
        <rdar://problem/4613948>
        REGRESSION: Check Spelling does not work in textarea elements

        * bridge/mac/FrameMac.mm:
        (WebCore::FrameMac::advanceToNextMisspelling):
        Don't use setStartBefore or setEndAfter on the search range because for shadow trees, there
        is no notion of before and after. Instead, use setStart and setEnd and pass in the start and end
        indices respectively.

        * dom/Range.cpp:
        (WebCore::Range::checkNodeBA):
        Allow range operations on shadow trees.

        * manual-tests/form-element-spelling.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bridge/mac/FrameMac.mm
WebCore/dom/Range.cpp
WebCore/manual-tests/form-element-spelling.html [new file with mode: 0644]