Closed Bug 2004170 Opened 5 months ago Closed 5 months ago

Flip logic in AnchorResolvedSizeHelper::FromUnresolved

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Filing this bug for a minor tweak to AnchorResolvedSizeHelper::FromUnresolved to make it easier to extend in bug 2000035 (to handle other keywords, namely stretch and friends).

The idea is to handle special cases (anchor positioning function, and soon stretch & aliases) in their own early-returns, and then handle the general case in a final return statement.

This doesn't change behavior at all; it just makes this function easier to
extend in the future.

Attachment #9530998 - Attachment description: Bug 2004170: Flip the logic ordering in AnchorResolvedMarginHelper::FromUnresolved. r?dshin → Bug 2004170: Flip the logic ordering in AnchorResolved{...}Helper::FromUnresolved() methods. r?dshin,#layout

Landing during the soft code-freeze given that there's no behavior-change (so, minimal risk); and taking this patch in v147 now will make patch-uplifting easier in surrounding code over the next 4 weeks (e.g. to fix late-breaking anchor positioning bugs).

Pushed by dholbert@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b3002681350a https://hg.mozilla.org/integration/autoland/rev/50adae86b20a Flip the logic ordering in AnchorResolved{...}Helper::FromUnresolved() methods. r=TYLin
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: