summaryrefslogtreecommitdiffstats
path: root/layout/tables/nsTableCellFrame.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-02 23:07:40 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-02 23:10:06 +0100
commit0de40040f006c493feeff7d688c169b904b8a22e (patch)
tree2a2e856ce590fcea6523f029644d5010da151a47 /layout/tables/nsTableCellFrame.cpp
parent145527207538b6ee1018cb77e6705912c29f8a9f (diff)
downloadUXP-0de40040f006c493feeff7d688c169b904b8a22e.tar
UXP-0de40040f006c493feeff7d688c169b904b8a22e.tar.gz
UXP-0de40040f006c493feeff7d688c169b904b8a22e.tar.lz
UXP-0de40040f006c493feeff7d688c169b904b8a22e.tar.xz
UXP-0de40040f006c493feeff7d688c169b904b8a22e.zip
Issue #146 - Part 2: Remove custom table painting component.
Since we're now putting table borders and backgrounds properly in the display lists, we no longer need this custom component to do this work for us.
Diffstat (limited to 'layout/tables/nsTableCellFrame.cpp')
-rw-r--r--layout/tables/nsTableCellFrame.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp
index bac8d387f..ec9458f76 100644
--- a/layout/tables/nsTableCellFrame.cpp
+++ b/layout/tables/nsTableCellFrame.cpp
@@ -12,7 +12,6 @@
#include "nsTableColFrame.h"
#include "nsTableRowFrame.h"
#include "nsTableRowGroupFrame.h"
-#include "nsTablePainter.h"
#include "nsStyleContext.h"
#include "nsStyleConsts.h"
#include "nsPresContext.h"
@@ -380,19 +379,6 @@ nsTableCellFrame::PaintBackground(nsRenderingContext& aRenderingContext,
return nsCSSRendering::PaintBackground(params);
}
-// Called by nsTablePainter
-DrawResult
-nsTableCellFrame::PaintCellBackground(nsRenderingContext& aRenderingContext,
- const nsRect& aDirtyRect, nsPoint aPt,
- uint32_t aFlags)
-{
- if (!StyleVisibility()->IsVisible()) {
- return DrawResult::SUCCESS;
- }
-
- return PaintBackground(aRenderingContext, aDirtyRect, aPt, aFlags);
-}
-
nsresult
nsTableCellFrame::ProcessBorders(nsTableFrame* aFrame,
nsDisplayListBuilder* aBuilder,