Closed Bug 1765632 Opened 2 years ago Closed 2 years ago

Refactor ReflowInput::CalculateHypotheticalPosition to combine boxISize and knowBoxISize into Maybe<nscoord>

Categories

(Core :: Layout: Positioned, task)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file)

When reading some code in ReflowInput::CalculateHypotheticalPosition just now, I noticed boxISize and knowBoxISize are essentially behaving as a Maybe<nscoord>.

I'm filing this bug on combining these variables to use Maybe, for simplicity and for better guarantees that Maybe provides (against inadvertent reassignment via repeated emplace(), and against uninitialized usage).

This patch shouldn't change behavior; it's just refactoring/simplifying
existing code, without changing the logic.

Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/322c13b909bf
Coalesce two variables into one Maybe<> variable, in ReflowInput::CalculateHypotheticalPosition. r=dshin
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: