-
bdakin@apple.com authored
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: http://svn.webkit.org/repository/webkit/trunk@37611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
cf22dbac