More clean up in table code
Categories
(Core :: Layout: Tables, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1859446 Part 3 - Rename member vars in TableRowGroupReflowInput to match coding style. r?#layout
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1859446 Part 5 - Make CreateContinuingRowFrame() return newly created table row frame. r?#layout
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
+++ This bug was initially created as a clone of Bug #1857585 +++
The bug collects the cleanup patches written while I'm reading table fragmentation code. None of the patches changes behavior.
Assignee | ||
Comment 1•7 months ago
|
||
We don't need set haveRow
to true
in every iteration in the loop over table
rows. It is sufficient to check GetFirstRow()
.
Assignee | ||
Comment 2•7 months ago
|
||
tableFrame
is seldom used, and all the functions that need the table frame
have already got it via GetTableFrame()
helper.
Depends on D191151
Assignee | ||
Comment 3•7 months ago
|
||
Also, remove using TableRowGroupReflowInput
statement since it helps my editor
jump directly to TableRowGroupReflowInput
's definition rather than to the
alias.
Depends on D191152
Assignee | ||
Comment 4•7 months ago
|
||
Add "kid" prefix for table row's desired size so that it won't be confused with
aDesiredSize
output argument.
Depends on D191153
Assignee | ||
Comment 5•7 months ago
|
||
Depends on D191154
Assignee | ||
Comment 6•7 months ago
|
||
We never communicate error status via the nsresult
return value, and they
always return NS_OK
. Hence the removal.
Depends on D191155
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1623646beb0c Part 1 - Remove haveRow variable in nsTableRowGroupFrame::ReflowChildren(). r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/898884b9aa84 Part 2 - Remove TableRowGroupReflowInput::tableFrame. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/75054752f021 Part 3 - Rename member vars in TableRowGroupReflowInput to match coding style. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/7b5c9e93ed48 Part 4 - Rename desiredSize variable for table row children. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/823aec1de554 Part 5 - Make CreateContinuingRowFrame() return newly created table row frame. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/3ed0446401b6 Part 6 - Remove unused nsresult return value from various table methods. r=layout-reviewers,jfkthame
Comment 8•7 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1623646beb0c
https://hg.mozilla.org/mozilla-central/rev/898884b9aa84
https://hg.mozilla.org/mozilla-central/rev/75054752f021
https://hg.mozilla.org/mozilla-central/rev/7b5c9e93ed48
https://hg.mozilla.org/mozilla-central/rev/823aec1de554
https://hg.mozilla.org/mozilla-central/rev/3ed0446401b6
Description
•