Bug 1886942 Part 1 - Remove typedefs in nsTableCellFrame. r=layout-reviewers,emilio

These typedefs are either not used, or used only a few times.

Differential Revision: https://phabricator.services.mozilla.com/D205417
This commit is contained in:
Ting-Yu Lin 2024-03-23 17:06:05 +00:00
parent ec751e23e0
commit 3e6eb26f1b
2 changed files with 7 additions and 16 deletions

View File

@ -222,7 +222,8 @@ class nsMathMLmtdFrame final : public nsTableCellFrame {
mozilla::nsDisplayListBuilder* aBuilder,
const mozilla::nsDisplayListSet& aLists) override;
LogicalMargin GetBorderWidth(WritingMode aWM) const override;
mozilla::LogicalMargin GetBorderWidth(
mozilla::WritingMode aWM) const override;
nsMargin GetBorderOverflow() override;

View File

@ -34,9 +34,6 @@ class PresShell;
class nsTableCellFrame : public nsContainerFrame,
public nsITableCellLayout,
public nsIPercentBSizeObserver {
typedef mozilla::gfx::DrawTarget DrawTarget;
typedef mozilla::image::ImgDrawResult ImgDrawResult;
friend nsTableCellFrame* NS_NewTableCellFrame(mozilla::PresShell* aPresShell,
ComputedStyle* aStyle,
nsTableFrame* aTableFrame);
@ -44,11 +41,6 @@ class nsTableCellFrame : public nsContainerFrame,
nsTableCellFrame(ComputedStyle* aStyle, nsTableFrame* aTableFrame)
: nsTableCellFrame(aStyle, aTableFrame, kClassID) {}
protected:
typedef mozilla::WritingMode WritingMode;
typedef mozilla::LogicalSide LogicalSide;
typedef mozilla::LogicalMargin LogicalMargin;
public:
NS_DECL_QUERYFRAME
NS_DECL_FRAMEARENA_HELPERS(nsTableCellFrame)
@ -216,7 +208,7 @@ class nsTableCellFrame : public nsContainerFrame,
return static_cast<nsTableCellFrame*>(sibling);
}
virtual LogicalMargin GetBorderWidth(WritingMode aWM) const;
virtual mozilla::LogicalMargin GetBorderWidth(mozilla::WritingMode aWM) const;
void DecorateForSelection(DrawTarget* aDrawTarget, nsPoint aPt);
@ -285,10 +277,7 @@ inline void nsTableCellFrame::SetContentEmpty(bool aContentEmpty) {
}
}
// nsBCTableCellFrame
class nsBCTableCellFrame final : public nsTableCellFrame {
typedef mozilla::image::ImgDrawResult ImgDrawResult;
public:
NS_DECL_FRAMEARENA_HELPERS(nsBCTableCellFrame)
@ -299,13 +288,14 @@ class nsBCTableCellFrame final : public nsTableCellFrame {
nsMargin GetUsedBorder() const override;
// Get the *inner half of the border only*, in twips.
LogicalMargin GetBorderWidth(WritingMode aWM) const override;
mozilla::LogicalMargin GetBorderWidth(
mozilla::WritingMode aWM) const override;
// Get the *inner half of the border only*, in pixels.
BCPixelSize GetBorderWidth(LogicalSide aSide) const;
BCPixelSize GetBorderWidth(mozilla::LogicalSide aSide) const;
// Set the full (both halves) width of the border
void SetBorderWidth(LogicalSide aSide, BCPixelSize aPixelValue);
void SetBorderWidth(mozilla::LogicalSide aSide, BCPixelSize aPixelValue);
nsMargin GetBorderOverflow() override;