Page MenuHomePhabricator

SelectionManager: When rendering highlights for lots of selections, only render those which are visible in the viewport
Closed, ResolvedPublic

Description

This optimisation already exists in FindAndReplaceDialog, where 100s of highlights are possible. When a threshold is hit, we limit search results to those that are within the viewport (or within 50px), and when the page is scrolled we recalculate.

This functionality should be brought into SelectionManager so it can be used by anyone rendering highlights, for example EditCheck in suggestion mode, which may highlight dozens of issues.

Event Timeline

Change #1188412 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] SelectionManager: Bring in viewport clipping logic from FindAndReplaceDialog

https://gerrit.wikimedia.org/r/1188412

Change #1188412 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] SelectionManager: Bring in viewport clipping logic from FindAndReplaceDialog

https://gerrit.wikimedia.org/r/1188412

Change #1189853 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (cfd45f5a8)

https://gerrit.wikimedia.org/r/1189853

Change #1189853 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (cfd45f5a8)

https://gerrit.wikimedia.org/r/1189853

EAkinloose edited projects, added: Verified; removed: Editing QA.