Closed Bug 1547138 Opened 6 years ago Closed 6 years ago

IntrinsicSize shouldn't use nsStyleCoord.

Categories

(Core :: Layout, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

I think this is a nice follow-up to bug 1547126.

No longer blocks: 1547126
Depends on: 1547126

We have a better type to represent "a coord or nothing", and that's Maybe.

This code is shorter, and I think reads generally better / is less easy to
misuse.

I wrote this on top of bug 1547126 so there shouldn't be conflicts.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/41ee8dc862a9 IntrinsicSize shouldn't use nsStyleCoord. r=dholbert
Type: defect → task
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/ee95a11e12ed followup: Let the compiler generate more IntrinsicSize functions as suggested by TYLin.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Depends on: 1547513
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: