Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init document theme during load #8320

Merged
merged 1 commit into from Feb 21, 2024
Merged

Conversation

caolanm
Copy link
Contributor

@caolanm caolanm commented Feb 20, 2024

like we do for the spelling setting, so we have the document in the desired state early before any rendering, dropping the early full document invalidations during initial setup

requires https://gerrit.libreoffice.org/c/core/+/163650 in the code to be useful

Change-Id: I6b762c95fd4c00c7da04cf89f7bbeef4bc57375d

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@caolanm caolanm mentioned this pull request Feb 20, 2024
6 tasks
like we do for the spelling setting, so we have the document in the
desired state early before any rendering, dropping the early full
document invalidations during initial setup

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6b762c95fd4c00c7da04cf89f7bbeef4bc57375d
@caolanm caolanm force-pushed the private/caolanm/init_theme_early branch from 16f8e06 to 8d7a041 Compare February 20, 2024 11:55
@caolanm caolanm requested a review from mmeeks February 20, 2024 20:14
@caolanm
Copy link
Contributor Author

caolanm commented Feb 20, 2024

This is in relation to flicker seen on longer writer documents.

It looks a good idea to have document in the desired theme from the start, which is something we do already for for spelling mode, and init from the users settings. This needs https://gerrit.libreoffice.org/c/core/+/163650 alongside it.

If this passes muster, the follow up suggestion is the pairing of #8329 and https://gerrit.libreoffice.org/c/core/+/163666 to let online know the viewRenderStart of the just constructed documents so we can elide unnecessary "canonicalidchange" messages that cause browser-side to re-request tiles it already asked for.

Copy link
Contributor

@mmeeks mmeeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. OTOH - I'd really prefer that we cleanup the DocOptions to have some nice structured JSON thing that is more simple to extend in future =)

@mmeeks mmeeks merged commit 7154ac5 into master Feb 21, 2024
11 checks passed
@mmeeks mmeeks deleted the private/caolanm/init_theme_early branch February 21, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants