Commit Graph
23 Commits
Author SHA1 Message Date
Tobias Hintze a9b7caaf97 insert some asserts against node===null in various places
(PositionIterator, SelectionMover, Document)
2013-02-04 20:39:05 +01:00
Jos van den Oever e4b8a83eac Fix the jumping cursor issue.
Counting of DOM positions was done with filtering, but the cursor requires no filtering.
2013-01-31 10:32:51 +01:00
Jos van den Oever bc3e2f9f08 Update to newer Closure Compiler. 2012-12-28 11:59:47 +01:00
Jos van den Oever b23fd669d3 Use dom offset when synchronizing with selection.
The DOM Selection uses 'normal' offset counting. This offset should be used when the PositionIterator is used to set the selection.
2012-11-16 17:24:39 +01:00
Jos van den Oever 8b0c05095b Update iterator position properly for inserting a cursor for another user in the same text node. 2012-11-15 11:24:56 +01:00
Jos van den Oever f3b0a0ebf4 Small clean-up of unused code. 2012-11-09 21:34:36 +01:00
Jos van den Oever 5dcdb449c3 Make sure that setPosition works even if there are neighboring Text nodes. 2012-11-09 18:01:43 +01:00
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