WebCore:
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Oct 2008 20:32:43 +0000 (20:32 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Oct 2008 20:32:43 +0000 (20:32 +0000)
commitef7ec8ce9c52155f544bd1be855272d3ede284fa
treefde0a9cf971d26d171b8898823f9f869d5c39e11
parent99d8c8bc3c0f3b4b7b0c5a3e9eed6f0d17a02589
WebCore:

2008-10-14  Maxime Britto  <britto@apple.com>

        Reviewed by Darin Adler, tweaked and landed by Beth.

        * WebCore.base.exp: Exposes two functions to be able to create a
        selection from a point on the screen. Also exposes the new
        TextIterator::currentNode function.
        * WebCore/editing/TextIterator.cpp:
        (TextIterator::currentNode) : New function that returns the current
        text node or NULL if there is no text node.

WebKit:

2008-10-14  Maxime Britto  <britto@apple.com>

        Reviewed by Darin Adler.

        * WebKit.xcodeproj/project.pbxproj: Added two files for the
        WebTextIterator, and made the WebTextIterator.h private

WebKit/mac:

2008-10-14  Maxime Britto  <britto@apple.com>

        Reviewed by Darin Adler.

        Added SPI to use WebCore's TextIterator with WebKit.

        * WebView/WebTextIterator.h: Added.
        * WebView/WebTextIterator.mm: Added.
        (-[WebTextIteratorPrivate dealloc]):
        (-[WebTextIterator dealloc]):
        (-[WebTextIterator initWithRange:]): Creates a TextIterator
        instance
        (-[WebTextIterator advance]): Asks the iterator to advance() .
        (-[WebTextIterator currentNode]): Returns the current DOMNode from
        the iterator
        (-[WebTextIterator currentText]): Returns the current text from the
        iterator
        (-[WebTextIterator atEnd]): Indicated whether the iterator has
        reached the end of the range.
        * WebView/WebView.h:
        * WebView/WebView.mm:
        (-[WebView textIteratorForRect:]): Returns a WebTextIterator with
        the DOMRange contained in the rectangle given as a parameter.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@37611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/WebCore.base.exp
WebCore/editing/TextIterator.cpp
WebCore/editing/TextIterator.h
WebKit/ChangeLog
WebKit/WebKit.xcodeproj/project.pbxproj
WebKit/mac/ChangeLog
WebKit/mac/WebView/WebTextIterator.h [new file with mode: 0644]
WebKit/mac/WebView/WebTextIterator.mm [new file with mode: 0644]
WebKit/mac/WebView/WebView.mm
WebKit/mac/WebView/WebViewPrivate.h