Closed Bug 1789034 Opened 2 years ago Closed 2 years ago

Random minor clean up in layout

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(3 files)

Spot minor clean up opportunities while diving into layout code.

All the callers are passing values to border and padding, so no need to provide
empty default values.

It has been used in rest of the method via its alias eStretchPreservingRatio
defined in a few lines below.

Depends on D156354

This method already works in logical coordinates. We should name it correctly.

Depends on D156355

Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a37d1942d39e
Remove default values for SizeComputationInput::InitOffsets(). r=emilio
https://hg.mozilla.org/integration/autoland/rev/0318f6647c33
Delete obsolete comment for Stretch::StretchPreservingRatio. r=emilio
https://hg.mozilla.org/integration/autoland/rev/be94662b0a4c
Rename ShrinkWidthToFit to ShrinkISizeToFit. r=emilio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: