Investigate whether StretchPreservingRatio enum variant can be removed
Categories
(Core :: Layout: Grid, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox133 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(2 external files)
After bug 1685428, we've tried to honor aspect-ratio under stretch alignment in grid layout. It seems Stretch and StretchPreservingRatio [1] might ultimately have the same meaning. We should investigate whether we can remove StretchPreservingRatio and simplify the code.
| Assignee | ||
Comment 1•2 years ago
|
||
The old code store them in iSize and bSize, which is confusing since they
can also store the resolved non-auto sizes.
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
After fixing bug 1685428, we honor aspect-ratio under stretch alignment in grid
layout. That makes the enum variants Stretch and StretchPreservingRatio
confusing.
To clarify their distinct behaviors, this patch renames the enum and its
variants as follows:
- Stretch::NoStretch (eNoStretch) -> FillCB::No
- Stretch::Stretch (eStretch) -> FillCB::Stretch
- Stretch::StretchPreservingRatio (eStretchPreservingRatio) -> FillCB::Clamp
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1310354f3fd3
https://hg.mozilla.org/mozilla-central/rev/a9acd1328271
Description
•