diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-02 02:16:41 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-02 02:16:41 +0100 |
commit | 28208f1d3efe0b0cf8e00f06fcbd8c3c5981f2f8 (patch) | |
tree | 94b0b54516594cb7a8c2ebf42c0960a3eb739045 /layout/tables/nsTableCellFrame.h | |
parent | 6bb671bcdd1ae143c7435f9f6201be2cab146144 (diff) | |
download | UXP-28208f1d3efe0b0cf8e00f06fcbd8c3c5981f2f8.tar UXP-28208f1d3efe0b0cf8e00f06fcbd8c3c5981f2f8.tar.gz UXP-28208f1d3efe0b0cf8e00f06fcbd8c3c5981f2f8.tar.lz UXP-28208f1d3efe0b0cf8e00f06fcbd8c3c5981f2f8.tar.xz UXP-28208f1d3efe0b0cf8e00f06fcbd8c3c5981f2f8.zip |
Issue #1378 - Align the drawing of table cell backgrounds with the spec.
Diffstat (limited to 'layout/tables/nsTableCellFrame.h')
-rw-r--r-- | layout/tables/nsTableCellFrame.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layout/tables/nsTableCellFrame.h b/layout/tables/nsTableCellFrame.h index d8debe993..e8dad5c20 100644 --- a/layout/tables/nsTableCellFrame.h +++ b/layout/tables/nsTableCellFrame.h @@ -209,7 +209,7 @@ public: /** set the desired size returned by this frame during its last reflow */ inline void SetDesiredSize(const ReflowOutput & aDesiredSize); - bool GetContentEmpty(); + bool GetContentEmpty() const; void SetContentEmpty(bool aContentEmpty); bool HasPctOverBSize(); @@ -246,6 +246,10 @@ public: virtual void InvalidateFrame(uint32_t aDisplayItemKey = 0) override; virtual void InvalidateFrameWithRect(const nsRect& aRect, uint32_t aDisplayItemKey = 0) override; virtual void InvalidateFrameForRemoval() override { InvalidateFrameSubtree(); } + + bool ShouldPaintBordersAndBackgrounds() const; + + bool ShouldPaintBackground(nsDisplayListBuilder* aBuilder); protected: virtual LogicalSides @@ -283,7 +287,7 @@ inline void nsTableCellFrame::SetDesiredSize(const ReflowOutput & aDesiredSize) mDesiredSize = aDesiredSize.Size(wm).ConvertTo(GetWritingMode(), wm); } -inline bool nsTableCellFrame::GetContentEmpty() +inline bool nsTableCellFrame::GetContentEmpty() const { return HasAnyStateBits(NS_TABLE_CELL_CONTENT_EMPTY); } |