diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-02 22:39:03 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-02 22:42:07 +0100 |
commit | 145527207538b6ee1018cb77e6705912c29f8a9f (patch) | |
tree | a285c388b5f554a60f42ef0db19c1cee327b8950 /layout/tables/nsTableRowFrame.cpp | |
parent | 24027f0df9d23304709a80c22c6bfdbd27a95046 (diff) | |
download | UXP-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/nsTableRowFrame.cpp')
-rw-r--r-- | layout/tables/nsTableRowFrame.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/layout/tables/nsTableRowFrame.cpp b/layout/tables/nsTableRowFrame.cpp index 1b6051ef2..dc053c991 100644 --- a/layout/tables/nsTableRowFrame.cpp +++ b/layout/tables/nsTableRowFrame.cpp @@ -605,21 +605,7 @@ nsTableRowFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, const nsRect& aDirtyRect, const nsDisplayListSet& aLists) { - nsDisplayTableItem* item = nullptr; - if (IsVisibleInSelection(aBuilder)) { - bool isRoot = aBuilder->IsAtRootOfPseudoStackingContext(); - if (isRoot) { - // This background is created regardless of whether this frame is - // visible or not. Visibility decisions are delegated to the - // table background painter. - // We would use nsDisplayGeneric for this rare case except that we - // need the background to be larger than the row frame in some - // cases. - item = new (aBuilder) nsDisplayTableRowBackground(aBuilder, this); - aLists.BorderBackground()->AppendNewToTop(item); - } - } - nsTableFrame::DisplayGenericTablePart(aBuilder, this, aDirtyRect, aLists, item); + nsTableFrame::DisplayGenericTablePart(aBuilder, this, aDirtyRect, aLists); } nsIFrame::LogicalSides |