Commit Graph
2850 Commits
Author SHA1 Message Date
Philip Peitsch b01acadc0e Merge pull request #343 from peitschie/align-perf
Improve performance of direct paragraph styling
2014-02-06 00:16:18 +11:00
Philip Peitsch 26a9252edb Save and restore focus once per batch of operations
Focus saving and restoring is expensive on most browsers, so major gains
in performance are realised by not doing this for every operation. A new
pair of signals implemented by operation routers denotes when a batch of
operations is about to processed, and when the router has completed this
batch.

Note, there is no implied promises about how many operations are executed
within a batch. This is left as a choice to the router implementations.
2014-02-05 23:41:57 +11:00
Philip Peitsch 558a1e3e23 Re-use new styles when applying direct paragraph styling
We only create a new paragraph style once per unique paragraph style
name. This vastly reduces the number of new styles created when
formatting a number of paragraphs that all share the same existing
paragraph style.
2014-02-05 23:41:57 +11:00
Philip Peitsch eb3d8aefbf Batch up calls that refresh the canvas CSS, size or annotations
These calls are UI render-related operations, and don't need to be done
immediately after every operation. Batching these up and doing them all
once after all ops are processed greatly improves the performance of
paragraph alignment updates with multiple paragraphs selected.
2014-02-05 22:53:37 +11:00
Philip Peitsch ae0c695971 Add paragraph alignment to the benchmark
This is disabled by default because it is very very slow (8s @ 10pages)
2014-02-05 22:53:36 +11:00
Philip Peitsch ee59bc7fab Merge pull request #352 from peitschie/event-trap-size
Ensure the event trap has a minimum height
2014-02-05 21:26:40 +11:00
Philip Peitsch 121e614e3d Ensure the event trap has a minimum height
0px height elements are not able to receive an active selection in most
browsers. Setting a minimum height ensures the event trap is still able
to be selected when in an empty paragraph.
2014-02-05 21:24:01 +11:00
Jos van den Oever 08fedde70a Merge pull request #358 from vandenoever/lessCircular
More verbose output for circular dependencies and small type fixes.
2014-02-05 09:29:20 +01:00
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 29d0360ef2 Merge pull request #357 from vandenoever/fasterJSLint
Speed up JSLint checks by only checking files that have changed.
2014-02-05 00:20:27 -08: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 a5021ded37 Merge pull request #361 from peitschie/remove-text-fix
Don't re-order non-ODF children when merging paragraphs
2014-02-04 23:04:00 -08:00
Philip Peitsch 7d5b77ce8f Don't re-order non-ODF children when merging paragraphs
Child order of non-ODF nodes should be preserved when merging
paragraphs.
2014-02-05 17:54:07 +11: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 d4f50bd320 Merge pull request #355 from vandenoever/fixCMake
Add accidentally removed definition of LIBJSFILES.
2014-02-04 03:48:07 -08:00
Jos van den Oever 7bf952629f Add accidentally removed definition of LIBJSFILES. 2014-02-04 12:40:28 +01:00
Jos van den Oever 4493a5b521 Merge pull request #354 from vandenoever/includeCMake
Do not store the list of js files in CMakeLists.txt.
2014-02-04 03:32:42 -08: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
Friedrich W. H. Kossebau 0f56a62428 Adjust min-required nodejs version to 0.10.5 2014-02-04 12:07:15 +01:00
Jos van den Oever 1f9d55b906 Merge pull request #350 from vandenoever/genericDocument
Add a general document interface for use in operations.
2014-02-04 01:07:20 -08:00
Jos van den Oever 9e0059236d Add a general document interface for use in operations.
The UndoManager and TrivialUndoManager classes are adapted to the generalized interface.
2014-02-04 10:01:08 +01:00
Tobias Hintze b917743c7a Merge pull request #351 from kogmbh/th-dont-build-nodejs
do not build NodeJS; require it instead
2014-02-03 16:24:18 -08:00
Tobias Hintze dbedb6590d do not build NodeJS; require it instead 2014-02-04 00:16:11 +01:00
Philip Peitsch 8f7d770e3f Merge pull request #346 from peitschie/fix-word-break-cursor
Keep event-trap non-inline unless composing text
2014-02-03 05:43:27 -08:00
Philip Peitsch fb6bdda28d Keep event-trap non-inline unless composing text
Inline blocks will cause the browser to allow word-wrapping to occur
either side of the node, an effect that is VERY undesirable for a
caret.

Making the event trap absolute, but expanded to the full height of the
cursor shows the composition menu displays in the same place as if
the trap was an inline-block. The cursor and trap are switched to inline
blocks during composition so the contained characters take up space in
the document.
2014-02-04 00:38:23 +11:00
Philip Peitsch d0024909a5 Merge pull request #345 from peitschie/caret-cleanup
Ensure caret is destroyed when corresponding cursor is removed
2014-02-03 04:08:07 -08:00
Philip Peitsch 523905847a Ensure caret is destroyed when corresponding cursor is removed
When a cursor is removed from the document, the associated caret should
also be destroyed. This prevents stale timers from attempting to update
the style on detached nodes, which causes crashes in some browsers
(e.g., WebKit in Cocoa on OSX10.8).
2014-02-03 23:02:10 +11:00
Philip Peitsch f1d11a1519 Merge pull request #347 from peitschie/ime-activation-fix
Always blur focus from the event trap before updating content editable
2014-02-03 03:29:41 -08:00
Philip Peitsch 74a8df16c8 Correct subscription to the blur event
The blur event should always be on the event trap, as the event should
indicate when the local input is no longer active.
2014-02-03 21:53:01 +11:00
Philip Peitsch a2edfb907f Always blur focus from the event trap before updating content editable
Toggling the content editable flag while the element is in focus will
sometimes stop the browser from allowing the IME to be activated.
Blurring the focus and then restoring ensures the browser re-evaluates
the IME state after the content editable flag has been updated.
2014-02-03 21:51:33 +11:00
Philip Peitsch 3cfb1b6bba Merge pull request #349 from peitschie/collab-cursor-fixes
Fixes to caret & avatar in collab mode
2014-02-03 02:49:36 -08:00
Philip Peitsch 31adb1d2ca Don't blink remote carets in collab mode
The caret should not blink by default. The local caret will blink once
focus is set to the window (or restored during setup).
2014-02-03 21:29:44 +11:00
Philip Peitsch e467fc24c9 Restore avatar frames in collaborative mode 2014-02-03 21:29:44 +11:00
Friedrich 017bfbda05 Merge pull request #340 from kossebau/codeCleanups
Code cleanups (as seemed useful today)
2014-01-31 06:38:34 -08:00
Friedrich W. H. Kossebau ad0c7541a4 OdfCanvasAdapter -> MockOdfCanvas 2014-01-31 15:33:43 +01:00
Friedrich W. H. Kossebau 73b6f505cb clickStartedWithinContainer -> clickStartedWithinCanvas 2014-01-31 15:33:43 +01:00
Friedrich W. H. Kossebau d2671e2a00 @returns -> @return 2014-01-31 15:33:43 +01:00
Friedrich W. H. Kossebau 142052b986 Add link to editor's welcome.odt (for webodf.org of course :) ) 2014-01-31 13:22:48 +01:00
Philip Peitsch b493237ce5 Merge pull request #341 from peitschie/common-styles
Report if a given style is a common style in the applied style summary
2014-01-31 03:35:03 -08:00
Philip Peitsch 283b407b33 Remove non-existent parameter from API dox 2014-01-31 15:10:13 +11:00
Philip Peitsch ed74aa3760 Report if a given style is a common style in the applied style summary
Consumers of the applied style summary information benefit from knowing
which common styles are applied to the given selection (e.g., so the
appropriate common paragraph & text styles can be selected in the UI).
2014-01-31 15:09:30 +11:00
Philip Peitsch af8ba06784 Merge pull request #329 from peitschie/selection-render-perf
Only re-render the selection overlay once per batch of requests
2014-01-30 15:32:59 -08:00
Philip Peitsch b501f033f0 Only re-render the selection overlay once per batch of requests
Also, decrease the maximum latency between a render request and when the
update is performed to be 0ms. The previous value of 200ms was quite
noticeable when indenting or unindenting paragraphs.
2014-01-31 10:28:14 +11:00
Friedrich ba91ff9c63 Merge pull request #316 from tradiaz/master
Add ctrl+arrow per-word cursor movement
2014-01-30 12:42:26 -08:00
Andreas Obergrusberger 45ebc8e02a Add ctrl+arrow per-word cursor movement 2014-01-30 21:33:39 +01:00
Aditya Bhatt 0b4f6a6df8 Merge pull request #333 from adityab/virtual-selections-viewer
Enable Virtual Selections in Viewer
2014-01-30 04:00:08 -08:00
Aditya Bhatt 6196adb15f Enable virtual selections in Viewer.
This initializes the Session, SessionView,
and SessionController, without yet enabling
editing, so that cursor movements and therefore
virtual selections work.

Hide the caret and handle.
2014-01-30 17:13:59 +05:30
Philip Peitsch 9f5b3c7500 Merge pull request #327 from peitschie/range-perf
Rewrite DomUtils.getNodesInRange to improve performance
2014-01-29 09:14:59 -08:00
Philip Peitsch 8b742ee28a Rewrite DomUtils.getNodesInRange to improve performance
By changing how boundaries are being checked, iteration
performance is boosted quite significantly for text node
retrieval.

* Replace @returns with @return in affected files
2014-01-30 04:10:36 +11:00
Philip Peitsch 866f1bb8c3 Merge pull request #324 from peitschie/undo-perf-tweaks
Improve the performance of undo ops grouping on large states
2014-01-29 04:25:54 -08:00