Reviewed by Maciej.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Dec 2005 18:21:50 +0000 (18:21 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Dec 2005 18:21:50 +0000 (18:21 +0000)
commit1f3bd5f7684c8f8470f4a01d2fed19164b17f1bc
tree97d9c66e564942ed78634134f6df2d31a1492239
parentd299f29168475ef7807eef4226095c51510188bc
    Reviewed by Maciej.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6246
          TextIterator::rangeFromLocationAndLength() returns nil range for an
          empty document

        Test: editing/input/range-for-empty-document.html

        * khtml/editing/visible_text.cpp:
        (khtml::TextIterator::rangeFromLocationAndLength):
        Handle the case of an empty document and (0, 0) requested range.

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