sw lok: disable field shadings
commitb982d0e6f94ca70765231ff4242c829f5bec5def
authorMiklos Vajna <vmiklos@collabora.com>
Mon, 1 Feb 2021 16:44:39 +0000 (1 17:44 +0100)
committerMiklos Vajna <vmiklos@collabora.com>
Tue, 2 Feb 2021 08:50:14 +0000 (2 09:50 +0100)
treec8dd4761ad8a86508e9f99b7bf3df61638f3d9fa
parentfac1dbc160321dcfebfd2ce3346199f2a6ea12f7
sw lok: disable field shadings

There are two problems with it:

First, the field shading is rendered behind bullet portions depending on
the cursor position (if the cursor is before the bullet, then we
render it; but not if the cursor is after the bullet), and tiled
rendering assumes that the render result is independent from the cursor
position.

Second, field shading is always painted directly (not going via
invalidation), so it's possible to end up with one tile showing field
shadings and another not, which is inconsistent. And even if it would be
there consistently, that would mean a lot of unnecessary invalidations.

The alternative would be to disable this from online.git's
loolconfig.xcu, but the item's path would end with something like
"ColorScheme['LibreOfficeDev']/WriterFieldShadings", which means it's
not easy to do this in a way that's independent from the product name.

(cherry picked from commit 876da94619d561e4b4c6c7d12a8d6726eb857df8)

Change-Id: I23c62acc3c15966cfba98fcee99cc96854ba4394
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110283
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sw/source/uibase/uno/unotxdoc.cxx