mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
67e9d5d1dd
Have created builders for insertion, removal, and single element replacement. In adding Document.getMetadata which is nearly identical to Document.getData, the two functions have been refactored to use a common static method getDataSlice, with this.data/this.metadata as an argument. Document.spliceMetadata has been added. It is essentially spliceData with the data/metadata synchronisation issue. Metadata cursor position is now tracked in the TransactionProcessor. Cursor advancement has been moved to a function so the metadata cursor can be reset every time the data cursor is moved. There were unhit bugs in the TransactionProcessor run test section, where the data being loaded into the test documents wasn't always being deep-copied, and the assert was looking at getData instead of getFulldata (which wouldn't be able to test metadata changes). Change-Id: Ieb20ab3e7827bc7ff04148f147da6728eb1eb666 |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
styles | ||
test | ||
ui | ||
ve.Action.js | ||
ve.ActionFactory.js | ||
ve.AnnotationSet.js | ||
ve.BranchNode.js | ||
ve.CommandRegistry.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.OrderedHashSet.js | ||
ve.Range.js | ||
ve.Registry.js | ||
ve.Surface.js | ||
ve.Trigger.js | ||
ve.TriggerRegistry.js |