Closed Bug 1901144 Opened 29 days ago Closed 25 days ago

Change nsLayoutUtils APIs that compute sizes to return results in Maybe

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(2 files)

In nsLayoutUtils, GetAbsoluteCoord, GetPercentBSize, GetDefiniteSize, GetIntrinsicCoord all return a bool indicating whether the result is computed successfully, with the actual results returned in output parameters. They could instead return Maybe<nscoord>.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

This patch makes them match the naming of other APIs such as GetDefiniteSize
and GetPercentBSize.

Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9635e5996cf9
Part 1 - Change nsLayoutUtils APIs that compute sizes to return results in Maybe. r=layout-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/309981d70b62
Part 2 - Rename GetAbsoluteCoord and GetIntrinsicCoord. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: