Bug 1370833 Part 1 - make less table invalidations for non-border-collapse tables. r=mattwoodrow
For the most part, I tried to make less *manual* table invalidations for non-border-collapse tables and relied the table invalidations on the comparison of the display items. By doing so, we can avoid the over-painting issue. MozReview-Commit-ID: 4w1DUKHXIFO
This commit is contained in:
@@ -960,9 +960,10 @@ nsTableCellFrame::Reflow(nsPresContext* aPresContext,
|
||||
FinishReflowChild(firstKid, aPresContext, kidSize, &kidReflowInput,
|
||||
wm, kidOrigin, containerSize, 0);
|
||||
|
||||
nsTableFrame::InvalidateTableFrame(firstKid, origRect, origVisualOverflow,
|
||||
firstReflow);
|
||||
|
||||
if (tableFrame->IsBorderCollapse()) {
|
||||
nsTableFrame::InvalidateTableFrame(firstKid, origRect, origVisualOverflow,
|
||||
firstReflow);
|
||||
}
|
||||
// first, compute the bsize which can be set w/o being restricted by
|
||||
// available bsize
|
||||
LogicalSize cellSize(wm);
|
||||
|
||||
Reference in New Issue
Block a user