summaryrefslogtreecommitdiffstats
path: root/layout/tables/nsTableColFrame.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-02 22:39:03 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-02 22:42:07 +0100
commit145527207538b6ee1018cb77e6705912c29f8a9f (patch)
treea285c388b5f554a60f42ef0db19c1cee327b8950 /layout/tables/nsTableColFrame.cpp
parent24027f0df9d23304709a80c22c6bfdbd27a95046 (diff)
downloadUXP-145527207538b6ee1018cb77e6705912c29f8a9f.tar
UXP-145527207538b6ee1018cb77e6705912c29f8a9f.tar.gz
UXP-145527207538b6ee1018cb77e6705912c29f8a9f.tar.lz
UXP-145527207538b6ee1018cb77e6705912c29f8a9f.tar.xz
UXP-145527207538b6ee1018cb77e6705912c29f8a9f.zip
Issue #146 - Part 1: Draw each table's background on their own display
list items. This patch does the following things: 1. Creates nsDisplayTableBorderCollapse that draws all collapse border of tables. 2. Stops the use of nsDisplayTableBorderBackground. 3. Lets column and column group frames generate display items. 4. When traversing the table, also traverses the column and column group frames. 5. For each type of table frame (col group, col, row group, row and cell), draws their own background.
Diffstat (limited to 'layout/tables/nsTableColFrame.cpp')
-rw-r--r--layout/tables/nsTableColFrame.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/layout/tables/nsTableColFrame.cpp b/layout/tables/nsTableColFrame.cpp
index 8f449c3d9..54b03522b 100644
--- a/layout/tables/nsTableColFrame.cpp
+++ b/layout/tables/nsTableColFrame.cpp
@@ -108,6 +108,14 @@ nsTableColFrame::Reflow(nsPresContext* aPresContext,
NS_FRAME_SET_TRUNCATION(aStatus, aReflowInput, aDesiredSize);
}
+void
+nsTableColFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
+ const nsRect& aDirtyRect,
+ const nsDisplayListSet& aLists)
+{
+ nsTableFrame::DisplayGenericTablePart(aBuilder, this, aDirtyRect, aLists);
+}
+
int32_t nsTableColFrame::GetSpan()
{
return StyleTable()->mSpan;