зеркало из https://github.com/mozilla/gecko-dev.git
Fix incremental reflow bug
This commit is contained in:
Родитель
bd87c6c4f2
Коммит
8a146ed86e
|
@ -276,6 +276,14 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
|||
if (NS_UNCONSTRAINEDSIZE!=availSize.height)
|
||||
availSize.height -= topInset+bottomInset+margin.top+margin.bottom;
|
||||
|
||||
// XXX Kipp added this hack
|
||||
if (eReflowReason_Incremental == aReflowState.reason) {
|
||||
// XXX We *must* do this otherwise incremental reflow that's
|
||||
// passing through will not work right.
|
||||
nsIFrame* next;
|
||||
aReflowState.reflowCommand->GetNext(next);
|
||||
}
|
||||
|
||||
// Try to reflow the child into the available space. It might not
|
||||
// fit or might need continuing.
|
||||
if (availSize.height < 0)
|
||||
|
|
|
@ -276,6 +276,14 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext& aPresContext,
|
|||
if (NS_UNCONSTRAINEDSIZE!=availSize.height)
|
||||
availSize.height -= topInset+bottomInset+margin.top+margin.bottom;
|
||||
|
||||
// XXX Kipp added this hack
|
||||
if (eReflowReason_Incremental == aReflowState.reason) {
|
||||
// XXX We *must* do this otherwise incremental reflow that's
|
||||
// passing through will not work right.
|
||||
nsIFrame* next;
|
||||
aReflowState.reflowCommand->GetNext(next);
|
||||
}
|
||||
|
||||
// Try to reflow the child into the available space. It might not
|
||||
// fit or might need continuing.
|
||||
if (availSize.height < 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче