Bug 1871608 Part 3 - Remove one addition unused methods and cleanup a comment. r=jwatt

Differential Revision: https://phabricator.services.mozilla.com/D197209
This commit is contained in:
Ting-Yu Lin 2023-12-22 22:53:51 +00:00
parent 5374b8b9dd
commit ba6d212459
3 changed files with 1 additions and 17 deletions

View File

@ -314,7 +314,7 @@ class nsBCTableCellFrame final : public nsTableCellFrame {
private:
// These are the entire width of the border (the cell edge contains only
// the inner half, per the macros in nsTablePainter.h).
// the inner half).
BCPixelSize mBStartBorder;
BCPixelSize mIEndBorder;
BCPixelSize mBEndBorder;

View File

@ -1220,16 +1220,6 @@ void nsTableFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
}
}
nsMargin nsTableFrame::GetDeflationForBackground(
nsPresContext* aPresContext) const {
if (eCompatibility_NavQuirks != aPresContext->CompatibilityMode() ||
!IsBorderCollapse())
return nsMargin(0, 0, 0, 0);
WritingMode wm = GetWritingMode();
return GetOuterBCBorder(wm).GetPhysicalMargin(wm);
}
LogicalSides nsTableFrame::GetLogicalSkipSides() const {
LogicalSides skip(mWritingMode);
if (MOZ_UNLIKELY(StyleBorder()->mBoxDecorationBreak ==

View File

@ -268,12 +268,6 @@ class nsTableFrame : public nsContainerFrame {
mozilla::Maybe<mozilla::LogicalMargin>& aBorder,
mozilla::Maybe<mozilla::LogicalMargin>& aPadding) const;
/**
* In quirks mode, the size of the table background is reduced
* by the outer BC border. Compute the reduction needed.
*/
nsMargin GetDeflationForBackground(nsPresContext* aPresContext) const;
friend class nsDelayedCalcBCBorders;
void AddBCDamageArea(const mozilla::TableArea& aValue);