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:
Родитель
bcb71acb25
Коммит
0d7da16519
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче