Wrong layout when adding rows to <mtable> via the DOM. Pass a stylechanged reflow so that wrappers of <mtable> don't over-optimize their reflow, b=354296, r+sr=roc

This commit is contained in:
rbs%maths.uq.edu.au 2006-09-28 10:52:44 +00:00
Родитель 5a81f80c0e
Коммит 9b3a8e911f
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1067,8 +1067,12 @@ printf("\n");
aDesiredSize.mFlags | NS_REFLOW_CALC_BOUNDING_METRICS);
nsIFrame* childFrame = mFrames.FirstChild();
while (childFrame) {
nsReflowReason reason = (childFrame->GetStateBits() & NS_FRAME_FIRST_REFLOW)
? eReflowReason_Initial : aReflowState.reason;
nsReflowReason reason = aReflowState.reason;
if (childFrame->GetStateBits() & NS_FRAME_FIRST_REFLOW)
reason = eReflowReason_Initial;
else if (aReflowState.path && aReflowState.path->mReflowCommand &&
aReflowState.path->mReflowCommand->Type() == eReflowType_StyleChanged)
reason = eReflowReason_StyleChange;
nsHTMLReflowState childReflowState(aPresContext, aReflowState,
childFrame, availSize, reason);
rv = ReflowChild(childFrame, aPresContext, childDesiredSize,