зеркало из https://github.com/mozilla/gecko-dev.git
b=19374. Restored some code I unintentionaly removed in previous checkin.
Now after Reflow() of child frame "kidRect.width" and "kidRect.height" are updated
This commit is contained in:
Родитель
39169f6482
Коммит
0e0d40fa91
|
@ -524,6 +524,8 @@ ViewportFrame::Reflow(nsIPresContext& aPresContext,
|
|||
kidReflowState.mComputedHeight = aReflowState.availableHeight;
|
||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
||||
0, 0, 0, aStatus);
|
||||
kidRect.width = kidDesiredSize.width;
|
||||
kidRect.height = kidDesiredSize.height;
|
||||
|
||||
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, 0, 0, 0);
|
||||
}
|
||||
|
|
|
@ -524,6 +524,8 @@ ViewportFrame::Reflow(nsIPresContext& aPresContext,
|
|||
kidReflowState.mComputedHeight = aReflowState.availableHeight;
|
||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
|
||||
0, 0, 0, aStatus);
|
||||
kidRect.width = kidDesiredSize.width;
|
||||
kidRect.height = kidDesiredSize.height;
|
||||
|
||||
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, 0, 0, 0);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче