WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Feb 2008 05:14:55 +0000 (05:14 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Feb 2008 05:14:55 +0000 (05:14 +0000)
commit3f08e771d2c9ce5cfbf5269f422fc7d226be16b8
tree7e5d24816fccd6b471c5f0ac8b8d06cb352ee0c9
parent013a52b10865373d961c6d47323d3cd9bd59c938
WebCore:

        Reviewed by Anders Carlsson.

        <rdar://problem/5714333> Add document.getSelection()

        Add a synonym for window.getSelection() that FF supports.  There were requests in
        this bugs dupes to also support the IE only document.selection, but IE's Selection
        object is too different than ours currently for that to be safe (specifically, we
        don't support enough of IE's TextRange methods on our DOM Range object yet). I
        filed <rdar://problem/5761233> to cover that.

        * dom/Document.cpp:
        (WebCore::Document::getSelection): Added.
        * dom/Document.h:
        * dom/Document.idl: Ditto.  JS only since this is about web compatibility.

LayoutTests:

        Reviewed by Anders.

        <rdar://problem/5714333> Add document.getSelection()

        * editing/selection/5714333-expected.txt: Added.
        * editing/selection/5714333.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/5714333-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/5714333.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Document.cpp
WebCore/dom/Document.h
WebCore/dom/Document.idl