Bug 370353: Dynamically setting "visibility: collapse" to a <col> no longer works. Patch by Daniel Holbert <dholbert@mozilla.com>. r=bernd sr=dbaron a1.9=dbaron

This commit is contained in:
cbarrett@mozilla.com 2007-08-17 16:51:58 -07:00
Родитель deb7b70b2c
Коммит 07c65fa3ba
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1845,6 +1845,7 @@ NS_METHOD nsTableFrame::Reflow(nsPresContext* aPresContext,
PRBool haveDesiredHeight = PR_FALSE;
PRBool reflowedChildren = PR_FALSE;
SetHaveReflowedColGroups(PR_FALSE);
if (aReflowState.ComputedHeight() != NS_UNCONSTRAINEDSIZE ||
// Also check mVResize, to handle the first Reflow preceding a
@ -3061,6 +3062,7 @@ nsTableFrame::ReflowColGroups(nsIRenderingContext *aRenderingContext)
nsPresContext *presContext = PresContext();
for (nsIFrame* kidFrame = mColGroups.FirstChild(); kidFrame;
kidFrame = kidFrame->GetNextSibling()) {
if (NS_SUBTREE_DIRTY(kidFrame)) {
// The column groups don't care about dimensions or reflow states.
nsHTMLReflowState kidReflowState(presContext, kidFrame,
aRenderingContext, nsSize(0,0));
@ -3069,6 +3071,7 @@ nsTableFrame::ReflowColGroups(nsIRenderingContext *aRenderingContext)
cgStatus);
FinishReflowChild(kidFrame, presContext, nsnull, kidMet, 0, 0, 0);
}
}
SetHaveReflowedColGroups(PR_TRUE);
}
}