diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-02 02:16:41 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:22:44 +0200 |
commit | fddc35e4384c20b1ad5d0c9818f490be29b1ece5 (patch) | |
tree | 46d948b46e1057a21f382152c9ac4215eb5703fa /layout/tables/nsTableCellFrame.h | |
parent | 7e4efa4e1f9d1569edcaed7440fbbfe831236c8d (diff) | |
download | UXP-fddc35e4384c20b1ad5d0c9818f490be29b1ece5.tar UXP-fddc35e4384c20b1ad5d0c9818f490be29b1ece5.tar.gz UXP-fddc35e4384c20b1ad5d0c9818f490be29b1ece5.tar.lz UXP-fddc35e4384c20b1ad5d0c9818f490be29b1ece5.tar.xz UXP-fddc35e4384c20b1ad5d0c9818f490be29b1ece5.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); } |