Closed
Bug 367458
Opened 19 years ago
Closed 19 years ago
remove nsTableFrame::GetBorderPadding
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Whiteboard: [patch])
Attachments
(1 file)
|
15.92 KB,
patch
|
bernd_mozilla
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Both versions of nsTableFrame::GetBorderPadding should be able to go away now that we have better APIs (one's a little tricky, but still doable).
| Assignee | ||
Comment 1•19 years ago
|
||
Actually, though, I think the one that's a little tricky should be able to go away entirely, since it's in code that was intended for unconstrained reflow (although it's actually checking NS_FRAME_FIRST_REFLOW).
| Assignee | ||
Updated•19 years ago
|
OS: Linux → All
Hardware: PC → All
Whiteboard: [patch]
| Assignee | ||
Comment 2•19 years ago
|
||
So there was one use of each version of GetBorderPadding:
* The use in CalcAvailWidth would have been the trickier to replace (although it was only a few lines, constructing an nsCSSOffsetState). However, I claim that I should have removed that whole part of the function during the reflow branch; anything that's supposed to happen only for the initial reflow is inherently broken, and in the case of table cells, what was then the initial reflow was always for intrinsic width determination.
* The use in VerticallyAlignChild is after the frame has been reflowed, so GetUsedBorderAndPadding is what we want to replace it with. (Note that nsBCTableCellFrame overrides GetUsedBorder.)
The rest of the patch is just the resulting code removal and parameter removal.
reftests pass
Attachment #252667 -
Flags: superreview?(roc)
Attachment #252667 -
Flags: review?(bernd_mozilla)
Attachment #252667 -
Flags: superreview?(roc) → superreview+
Attachment #252667 -
Flags: review?(bernd_mozilla) → review+
| Assignee | ||
Comment 3•19 years ago
|
||
Checked in to trunk.
Updated•19 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•