Closed Bug 1883550 Opened 2 years ago Closed 2 years ago

Avoid triggering synchronous reflow in when calculating TreeView's visible height

Categories

(Thunderbird :: Folder and Message Lists, enhancement)

enhancement

Tracking

(thunderbird_esr115 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
thunderbird_esr115 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

(Keywords: perf:responsiveness)

Attachments

(1 file)

TreeView.#calculateVisibleHeight can cause synchronous reflow to get the table's height. But it doesn't need to – we already know the table's height because we have a ResizeObserver watching it. If we just remember the height from the last time it changed¹, we can avoid this function being the cause of a reflow and blame something else for it.

(¹ …and the height of the table header, which we can watch in a similar way.)

See Also: → 1860094
Target Milestone: --- → 125 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/89a8fa3b520f
Avoid triggering synchronous reflow in when calculating TreeView's visible height. r=leftmostcat

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9389277 [details]
Bug 1883550 - Avoid triggering synchronous reflow in when calculating TreeView's visible height. r=leftmostcat

[Approval Request Comment]
Regression caused by (bug #): Message list performance improvement in some circumstances. Potentially fixes bug 1860094.
User impact if declined:
Testing completed (on c-c, etc.): In 125 beta 1.
Risk to taking this patch (and alternatives if risky): Low.

Comment on attachment 9389277 [details]
Bug 1883550 - Avoid triggering synchronous reflow in when calculating TreeView's visible height. r=leftmostcat

Flag went missing. User error. :-)

Attachment #9389277 - Flags: approval-comm-esr115?
Blocks: 1860094
See Also: 1860094

Comment on attachment 9389277 [details]
Bug 1883550 - Avoid triggering synchronous reflow in when calculating TreeView's visible height. r=leftmostcat

[Triage Comment]
Approved for esr115

Attachment #9389277 - Flags: approval-comm-esr115? → approval-comm-esr115+
Regressions: 1896009
No longer blocks: 1860094
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: