Closed Bug 1778178 Opened 2 years ago Closed 2 years ago

Convert ReflowInput's available size write-accessors to setters

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(1 file)

We have two write accessors to ReflowInput's available size [1]. I'd like to convert them to setters so that they are more explicit and discoverable.

nscoord& AvailableISize() { return mAvailableSize.ISize(mWritingMode); }
nscoord& AvailableBSize() { return mAvailableSize.BSize(mWritingMode); }

[1] https://searchfox.org/mozilla-central/rev/287583a4a605eee8cd2d41381ffaea7a93d7b987/layout/generic/ReflowInput.h#330-331

This patch rewrites some callers, but they shouldn't change the behavior.

Pushed by tlin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c3878c884a09
Convert ReflowInput's available size write-accessors to setters. r=layout-reviewers,jfkthame
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Blocks: 1795196
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: