summaryrefslogtreecommitdiffstats
path: root/layout
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-05-08 01:13:51 +0300
committerMoonchild <moonchild@palemoon.org>2020-05-20 13:49:16 +0000
commitd8d0538162defbb3e44be475c4781bb71f55c2ba (patch)
tree4a8c344f3cd8d32f9ba6bd0539ce842fcd84483d /layout
parent36369e0fef4642068bbe842b6dfea3e3789d1582 (diff)
downloadUXP-d8d0538162defbb3e44be475c4781bb71f55c2ba.tar
UXP-d8d0538162defbb3e44be475c4781bb71f55c2ba.tar.gz
UXP-d8d0538162defbb3e44be475c4781bb71f55c2ba.tar.lz
UXP-d8d0538162defbb3e44be475c4781bb71f55c2ba.tar.xz
UXP-d8d0538162defbb3e44be475c4781bb71f55c2ba.zip
Issue #1355 - SetNeedToCalcHasBCBorders to true when initialize nsTableFrame
In the printing preview, we create continuous table frame if table is too long to containing in a page. But the default value of NeedToCalcHasBCBorders is false which means we don't calculate HasBCBorders for continuous table frame. Thus, the border collapse is not shown when printing preview.
Diffstat (limited to 'layout')
-rw-r--r--layout/tables/nsTableFrame.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp
index 99838f217..57b249fb3 100644
--- a/layout/tables/nsTableFrame.cpp
+++ b/layout/tables/nsTableFrame.cpp
@@ -176,6 +176,9 @@ nsTableFrame::Init(nsIContent* aContent,
const nsStyleTableBorder* tableStyle = StyleTableBorder();
bool borderCollapse = (NS_STYLE_BORDER_COLLAPSE == tableStyle->mBorderCollapse);
SetBorderCollapse(borderCollapse);
+ if (borderCollapse) {
+ SetNeedToCalcHasBCBorders(true);
+ }
if (!aPrevInFlow) {
// If we're the first-in-flow, we manage the cell map & layout strategy that