Commit Graph
29 Commits
Author SHA1 Message Date
Jos van den Oever 7f20a8a6c7 More verbose output for circular dependencies and small type fixes. 2014-02-05 09:23:56 +01:00
Jos van den Oever e76efab218 Add comments that explain the caching method. 2014-02-05 09:19:05 +01:00
Jos van den Oever 3f9e2ee02e Speed up JSLint checks by only checking files that have changed.
This speedup makes it feasible to run updateJS.js on every build invocation. This ensures that new javascript files are always picked up.
2014-02-04 16:11:18 +01:00
Jos van den Oever f0ed5a4f42 Do not store the list of js files in CMakeLists.txt.
The list of files changes on many commits and makes merging hard. This patch simply removes the list from the code and uses one that is generated and placed in the build directory.
2014-02-04 12:11:37 +01:00
Philip Peitsch 8c7de7c698 Refactor how style summary is retrieved to use cached values
When selecting or modifying large areas of content, the multiple
style information lookup becomes quite expensive. These can be greatly
sped up by using a common cached value + associated query object
instead.
2014-01-29 00:46:52 +11:00
Philip Peitsch 012f7d98b4 Implemented faster & more robust cursor position fixing logic
Existing behaviour was slow if the cursor has a large distance between
the
anchor and focus nodes. It also tended to lose the first letter when
right
near the start of a paragraph or root boundary.

New logic avoids the need for expensive positional lookups, instead
exploiting the fact that the actual step value of the cursor is expected
to be unmoved. This allows the start and end points of the range to be
simply moved to their nearest valid step.

* Re-ordered ambiguous elements in test
"Remove_DeleteLastCharacterInSpan"

Fixes issue #261
2014-01-15 11:29:49 +11:00
Jos van den Oever 819ea5cac8 Sort paths to read files to make the output of updateJS.js more stable. 2013-12-20 17:32:49 +01:00
Jos van den Oever d012c83758 Sort read files to make the output of updateJS.js more stable. 2013-12-20 17:24:19 +01:00
Jos van den Oever 10851b0758 Fail build when CMakeLists.txt is updated. 2013-12-20 10:33:51 +01:00
Friedrich W. H. Kossebau a521f78304 Put custom data into drag handler instead of built-in nodes text extraction, concentrate mimedata export in new gui.MimeDataExporter 2013-12-18 15:12:22 +01:00
lli ce77b46352 Make HyperlinkClickHandler.js 100% typed 2013-12-18 11:38:05 +11:00
Jos van den Oever 0cdf2d8415 Add more information about circular dependencies. 2013-12-17 13:19:12 +01:00
lli 6f11f80579 Handles platform-specific file separator in updateJS.js
Currently broken on windows as it uses backslash instead of slash for file separator
2013-12-11 16:50:52 +11:00
Friedrich W. H. Kossebau db54df0a8b Create <office:meta> only on demand (and merge MetadataManager into OdfContainer) 2013-12-05 18:25:20 +01:00
Jos van den Oever 1b10d7d709 Simpler detection of circular dependency.
The new check detects a circular dependency immediately instead of bailing out after a large number of iterations.
2013-12-02 13:41:34 +01:00
Jos van den Oever fede4a4725 Make gui.SelectionMover 100% typed. 2013-12-02 13:01:56 +01:00
Jos van den Oever 9984265c10 Make odf.OdfCanvas 100% typed. 2013-12-02 13:01:56 +01:00
Jos van den Oever 9afb69895c Make gui.StyleHelper 100% typed. 2013-12-02 13:01:56 +01:00
Jos van den Oever e220c89a84 Make odf.Formatting 100% typed. 2013-12-02 13:01:56 +01:00
Jos van den Oever 3093828871 Break circular dependency between Formatting and TextStyleApplicator. 2013-12-02 13:01:56 +01:00
Jos van den Oever 13ecee3f46 Make Style2CSS 100% typed.
The code is much more readable now and some inefficiencies are resolved now.
E.g. in one place an array was iterated like it was an object.
The use of getElementByTagnameNS has been replaced by more efficient
getDirectChild.
2013-12-02 13:01:56 +01:00
Jos van den Oever e2b51962fa Make AnnotationViewManager 100% typed. 2013-12-02 13:01:56 +01:00
Jos van den Oever 3665ca7607 Add more straightforward type annotations. 2013-12-02 13:01:56 +01:00
Jos van den Oever d80cf774f6 Add type information to odf.OdfContainer. 2013-12-02 13:01:56 +01:00
Jos van den Oever 4147c6aa5d Add straightforward type annotations.
Also add a check to updateJS.js to avoid hanging when calculating the dependencies.
2013-12-02 13:01:55 +01:00
Jos van den Oever 214cd3bf05 Disable build failure when the generated CMakeLists.txt changes.
This should be eventually be fixed and re-enabled.
2013-12-02 11:31:49 +01:00
Jos van den Oever 55a3b46a34 Fix JSLint issues and add more documentation. 2013-11-29 19:09:24 +01:00
Jos van den Oever 163562a84d Generate list of JavaScript files in CMakeLists.txt.
Some types needed to be fixed due to the new file order.
2013-11-29 18:33:28 +01:00
Jos van den Oever dfec9ee62e Use manifest.json instead of manifest.js
The manifest.json files are generated automatically from the sources by the script updateJS.js, which also runs JSLint.
Dependencies are stored in manifest.json now. This allows the loading of modules to be more efficient, since all the required modules can be determined before loading.
2013-11-29 18:33:17 +01:00