Skip to content

Commit

Permalink
Bug 1394249 - SetNeedToCalcHasBCBorders to true when initialize nsTab…
Browse files Browse the repository at this point in the history
…leFrame. r=mats

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.

MozReview-Commit-ID: IqhLSYuWj30
  • Loading branch information
mephisto41 committed Sep 13, 2017
1 parent 3795bdf commit afa14cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layout/tables/nsTableFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,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
Expand Down

0 comments on commit afa14cd

Please sign in to comment.