kogmbh/WebODF — pull request #369 by peitschie (2014-02-06 04:09:42+00:00)
Title: Reduce visible caret flicker when caret transitions from large to small

There are significant performance costs with calculating the caret size, so still want to avoid computing this until all ops have been performed. However, if the caret size is wildly incorrect for it's new position after an update (e.g., caret moving from beside an image to beside text), the caret will be user visible before the render occurs, and results in a large caret momentarily flashing before shrinking to an appropriate size. To prevent this flicker, we hide the caret until it is redrawn, as an absent caret is far less noticeable than an oversized one.