summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-05-08 01:13:51 +0300
committerwin7-7 <win7-7@users.noreply.github.com>2020-05-08 15:25:47 +0300
commit45b20c5e4aabf1ba51af71b0a07d75c85e067dce (patch)
treefd0bfec557df327599273852e8c1ff46556d2833
parent58219fc214e7d20b2062e99b8007c087ed5b11a5 (diff)
downloaduxp-45b20c5e4aabf1ba51af71b0a07d75c85e067dce.tar.gz
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.
-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 99838f217f..57b249fb32 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