Commit Graph
16 Commits
Author SHA1 Message Date
Jos van den Oever e966700c7a Implement getPositionInTextNode. 2012-10-22 15:01:46 +02:00
Jos van den Oever 669399f5f7 Handle the case when a position is set to the end of a text node. 2012-10-21 16:24:43 +02:00
Tobias Hintze 758333d210 update "@source:" references to gitorious.org/webodf
(as in master: de1a79c36f)
2012-10-21 12:18:15 +02:00
Jos van den Oever 236dd81f31 Work towards moving the avatar line up and line down.
For this to work, the checking of the position of the selection should be stricter. This patch refactors the way the PositionIterator is updated when the cursor is removed. The iterator is now updated in such a way that no not-yet-valid offset needs to be set.
2012-10-05 17:31:58 +02:00
Jos van den Oever a1c9d6202b Simplify setPosition function. 2012-10-03 15:37:36 +02:00
Jos van den Oever 3e3de5be29 Fix failing PositionIteratorTests. 2012-10-03 15:28:01 +02:00
Jos van den Oever ac51bbc948 Make the session caret iterator move more nicely. 2012-10-03 09:01:14 +02:00
Jos van den Oever 025dde0c55 Fix PositionIterator to use the filter when setting the position. 2012-10-02 08:21:47 +02:00
Jos van den Oever 031b6a2b05 Add functions to get neighboring text parts in the PositionIterator.
Also add more tests.
2012-09-01 20:57:44 +02:00
Jos van den Oever 566749728e Get avatar to move somewhat along with the caret. 2012-08-28 22:19:58 +02:00
Jos van den Oever 643d631dbc Workaround for versions of createTreeWalker that need a function instead of an object with a function such as IE 9 and older webkits 2012-08-27 13:02:11 +02:00
Jos van den Oever 98bc24d7bc Fix PositionIterator to handle empty text nodes. 2012-08-26 17:59:15 +02:00
Jos van den Oever e6611afe38 Fix more tests. 2012-08-25 00:04:58 +02:00
Jos van den Oever 7c2540fa61 Add more tests. 2012-08-24 22:44:37 +02:00
Jos van den Oever 27a0c2a614 Adapt tests in PositionIteratorTests and fix PositionIterator so they pass. 2012-08-24 21:52:24 +02:00
Jos van den Oever a75a4432a3 Change to use PositionIterator instead of PointWalker.
This class still needs to be implemented.
2012-08-24 18:05:20 +02:00