Closed Bug 1751471 Opened 3 years ago Closed 3 years ago

Consider adding a debug pref to turn off flexbox optimization

Categories

(Core :: Layout: Flexbox, task)

task

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

I feel we often force the flex item's final reflow as a common trick when investigating flexbox sizing issues.

Daniel, do you feel it's worth landing your patch in bug 1747024 comment 9 permanently? An extra if in FlexItem::NeedsFinalReflow shouldn't impact the performance, and can also be useful to webcompat teams. If yes, I can work on a patch using StaticPref.

NI for comment 0.

Flags: needinfo?(dholbert)

Yes, that seems like a useful diagnostic tool. Thanks for volunteering to work on a patch to add it!

Name-wise, we should make sure it's not something that users would feel tempted to toggle if they go poking around about:config looking to do their own performance-tuning.

Flags: needinfo?(dholbert)

(In particular, my layout.css.flex.perf.cache-final-reflow.disabled naming in bug 1747024's diagnostic patch is a bit clunky.)

Maybe better: layout.css.flex.skip-final-reflow.enabled

(Or s/skip/optimize-away/ perhaps -- a bit longer, but a bit clearer about "true" being the good/default setting.)

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Attachment #9260435 - Attachment description: Bug 1751471 - Add a preference to always run flex item's final reflow. r?dholbert → Bug 1751471 - Add a diagnostic preference to always run flex item's final reflow. r?dholbert
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d56556c22163
Add a diagnostic preference to always run flex item's final reflow. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: