Bug 850964 - Remove obsolete NS_FRAME_INVALIDATE_ON_MOVE flag. r=roc

This commit is contained in:
Mats Palmgren 2013-03-14 14:39:26 +01:00
parent f2b1addbf9
commit 13657dc37c
5 changed files with 5 additions and 11 deletions

View File

@ -20,9 +20,6 @@
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
#define NS_FRAME_NO_SIZE_VIEW 0x0004
#define NS_FRAME_NO_VISIBILITY 0x0008
// Only applies to ReflowChild: if true, invalidate the child if it's
// being moved
#define NS_FRAME_INVALIDATE_ON_MOVE 0x0010
class nsOverflowContinuationTracker;
namespace mozilla {

View File

@ -887,7 +887,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
bool firstReflow = (firstKid->GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0;
ReflowChild(firstKid, aPresContext, kidSize, kidReflowState,
kidOrigin.x, kidOrigin.y, NS_FRAME_INVALIDATE_ON_MOVE, aStatus);
kidOrigin.x, kidOrigin.y, 0, aStatus);
if (NS_FRAME_OVERFLOW_IS_INCOMPLETE(aStatus)) {
// Don't pass OVERFLOW_INCOMPLETE through tables until they can actually handle it
//XXX should paginate overflow as overflow, but not in this patch (bug 379349)

View File

@ -2694,8 +2694,7 @@ nsTableFrame::PlaceRepeatedFooter(nsTableReflowState& aReflowState,
nsHTMLReflowMetrics desiredSize;
desiredSize.width = desiredSize.height = 0;
ReflowChild(aTfoot, presContext, desiredSize, footerReflowState,
aReflowState.x, aReflowState.y,
NS_FRAME_INVALIDATE_ON_MOVE, footerStatus);
aReflowState.x, aReflowState.y, 0, footerStatus);
PlaceChild(aReflowState, aTfoot, desiredSize, origTfootRect,
origTfootVisualOverflow);
}
@ -2826,8 +2825,7 @@ nsTableFrame::ReflowChildren(nsTableReflowState& aReflowState,
reorder = true;
rv = ReflowChild(kidFrame, presContext, desiredSize, kidReflowState,
aReflowState.x, aReflowState.y,
NS_FRAME_INVALIDATE_ON_MOVE, aStatus);
aReflowState.x, aReflowState.y, 0, aStatus);
if (reorder) {
// reorder row groups the reflow may have changed the nextinflows

View File

@ -881,7 +881,7 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
nsReflowStatus status;
rv = ReflowChild(kidFrame, aPresContext, desiredSize, kidReflowState,
x, 0, NS_FRAME_INVALIDATE_ON_MOVE, status);
x, 0, 0, status);
// allow the table to determine if/how the table needs to be rebalanced
// If any of the cells are not complete, then we're not complete

View File

@ -368,8 +368,7 @@ nsTableRowGroupFrame::ReflowChildren(nsPresContext* aPresContext,
}
rv = ReflowChild(kidFrame, aPresContext, desiredSize, kidReflowState,
0, aReflowState.y, NS_FRAME_INVALIDATE_ON_MOVE,
aStatus);
0, aReflowState.y, 0, aStatus);
// Place the child
PlaceChild(aPresContext, aReflowState, kidFrame, desiredSize,