Clean up for table row and table cell code
Categories
(Core :: Layout: Tables, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox120 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(7 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
The bug collects the cleanup patches written while I'm reading table fragmentation code. None of the patches changes behavior.
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
wm has been declared near the beginning of nsTableCellFrame::Reflow().
Depends on D190371
| Assignee | ||
Comment 3•2 years ago
|
||
It is confusing for ResetBSize() to take a parameter to set the fixed
block-size. The caller can call SetFixedBSize() if needed.
Depends on D190372
| Assignee | ||
Comment 4•2 years ago
|
||
We don't ever remove NS_TABLE_ROW_HAS_UNPAGINATED_BSIZE bit, so let's set the
bit directly in SetUnpaginatedBSize().
This patch doesn't change behavior.
Depends on D190373
| Assignee | ||
Comment 5•2 years ago
|
||
nsTableRowFrame's children are all nsTableCellFrame, and GetFirstCell() has an
assertion for that. Hence, we can delete the unreachable code dealing with
non-cell frames.
Depends on D190374
| Assignee | ||
Comment 6•2 years ago
|
||
While I'm here, revise GetFirstRow(), GetLastRow(), and GetNextRow(), and add
assertions to them to ensure the correctness of table frame tree structure.
Depends on D190375
| Assignee | ||
Comment 7•2 years ago
|
||
- It used to return useless
nsresult. Change it to return the block-size
instead of modifying the argument to return value. - Shorten its name to
CalcCellActualBSize. to matchCalcBSize.
Depends on D190376
Comment 9•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/26cd8108386b
https://hg.mozilla.org/mozilla-central/rev/bb38442c5c66
https://hg.mozilla.org/mozilla-central/rev/33292b37979d
https://hg.mozilla.org/mozilla-central/rev/9b16e698bb50
https://hg.mozilla.org/mozilla-central/rev/e3bac061baef
https://hg.mozilla.org/mozilla-central/rev/f419ded2ab03
https://hg.mozilla.org/mozilla-central/rev/8d59db268cc8
Description
•