mediawiki-extensions-Visual.../modules/ve
Catrope 7465b670e1 Add and update an offset map in DocumentNode
This has some TODOs still but I want to land it now anyway, and fix the
TODOs later.

* Add this.offsetMap which maps each linear model offset to a model tree node
* Refactor createNodesFromData()
** Rename it to buildSubtreeFromData()
** Have it build an offset map as well as a node subtree
** Have it set the root on the fake root node so that when the subtree
   is attached to the main tree later, we don't get a rippling root
   update all the way down
** Normalize the way the loop processes content, that way adding offsets
   for content is easier
* Add rebuildNodes() which uses buildSubtreeFromData() to rebuild stuff
* Use rebuildNodes() in DocumentSynchronizer
* Use pushRebuild() in TransactionProcessor
* Optimize setRoot() for the case where the root is already set correctly

Change-Id: I8b827d0823c969e671615ddd06e5f1bd70e9d54c
2012-04-13 16:46:02 -07:00
..
ce New Method isSelection() in Surface View 2012-04-12 10:22:42 -07:00
dm Add and update an offset map in DocumentNode 2012-04-13 16:46:02 -07:00
es prevent insert for stand alone command key. 2012-03-05 17:57:54 +00:00
ui Migrate tools from SurfaceObserver Class 2012-04-11 13:19:58 -07:00
ve.BranchNode.js Add and update an offset map in DocumentNode 2012-04-13 16:46:02 -07:00
ve.EventEmitter.js Migrated es.* to new ve.* namespace which is more structured, and will make it easier to keep data model, edit surface, user interface and content editable work separated cleanly 2012-02-06 23:50:56 +00:00
ve.js Cleanup of white space, missing semi-colons, line breaks, etc. 2012-04-02 15:28:26 -07:00
ve.LeafNode.js Migrated es.* to new ve.* namespace which is more structured, and will make it easier to keep data model, edit surface, user interface and content editable work separated cleanly 2012-02-06 23:50:56 +00:00
ve.Node.js Migrated es.* to new ve.* namespace which is more structured, and will make it easier to keep data model, edit surface, user interface and content editable work separated cleanly 2012-02-06 23:50:56 +00:00
ve.Position.js Migrated es.* to new ve.* namespace which is more structured, and will make it easier to keep data model, edit surface, user interface and content editable work separated cleanly 2012-02-06 23:50:56 +00:00
ve.Range.js Migrated es.* to new ve.* namespace which is more structured, and will make it easier to keep data model, edit surface, user interface and content editable work separated cleanly 2012-02-06 23:50:56 +00:00
ve.Surface.js Cleanup of white space, missing semi-colons, line breaks, etc. 2012-04-02 15:28:26 -07:00