mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
bug 114706 - only use last height as desired size if a special reflow occurred during an incremental reflow. sr=kin
This commit is contained in:
parent
5551899c79
commit
694c4c654a
@ -1097,8 +1097,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
|
||||
SetHadSpecialReflow(PR_TRUE);
|
||||
}
|
||||
else if (HadSpecialReflow()) {
|
||||
if ((eReflowReason_Incremental == aReflowState.reason) ||
|
||||
(eReflowReason_Resize == aReflowState.reason)) {
|
||||
if (eReflowReason_Incremental == aReflowState.reason) {
|
||||
// with an unconstrained height, if the block height value hasn't changed,
|
||||
// use the last height of the cell.
|
||||
if ((NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) &&
|
||||
|
@ -1097,8 +1097,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
|
||||
SetHadSpecialReflow(PR_TRUE);
|
||||
}
|
||||
else if (HadSpecialReflow()) {
|
||||
if ((eReflowReason_Incremental == aReflowState.reason) ||
|
||||
(eReflowReason_Resize == aReflowState.reason)) {
|
||||
if (eReflowReason_Incremental == aReflowState.reason) {
|
||||
// with an unconstrained height, if the block height value hasn't changed,
|
||||
// use the last height of the cell.
|
||||
if ((NS_UNCONSTRAINEDSIZE == aReflowState.availableHeight) &&
|
||||
|
Loading…
Reference in New Issue
Block a user