More cleanup related to intrinsic size
Categories
(Core :: Layout, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox130 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(4 files)
See the patches for details.
| Assignee | ||
Comment 1•1 year ago
|
||
nsIFrame already provides GetIntrinsicSize() for subclasses to override.
Therefore, nsLeafFrame doesn't need to introduce another version for its
subclasses.
This patch (hopefully) shouldn't change the behavior.
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
- Expand
SizeToAvailSize()at callsites since it is only used twice, and the
callsites already have calledSetOverflowAreasToDesiredBounds(). - Revise obsolete comment for
nsLeafFrame. - Remove redundant
virtualkeyword.
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Comment 4•1 year ago
|
||
These frames have very similar implementations in GetMinISize() and
GetPrefISize(). Therefore, add helpers to avoid code duplication. The helpers
are named IntrinsicISize() to match existing helpers in flex & grid container.
Drop "Get" in GetIntrinsicISize() for nsFieldSetFrame and
nsComboboxControlFrame to match our coding style because it always returns a
value.
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/16a4be98c3a0
https://hg.mozilla.org/mozilla-central/rev/e9f1397f7667
https://hg.mozilla.org/mozilla-central/rev/321316df53f0
https://hg.mozilla.org/mozilla-central/rev/70c615f711f3
Description
•