Bug 850964 - Remove obsolete NS_FRAME_INVALIDATE_ON_MOVE flag. r=roc

This commit is contained in:
Mats Palmgren
2013-03-15 23:32:35 +01:00
parent ea89557afa
commit 02efff6847
5 changed files with 6 additions and 12 deletions

View File

@@ -20,12 +20,9 @@
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW) #define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
#define NS_FRAME_NO_SIZE_VIEW 0x0004 #define NS_FRAME_NO_SIZE_VIEW 0x0004
#define NS_FRAME_NO_VISIBILITY 0x0008 #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
// Only applies to ReflowChild; if true, don't delete the next-in-flow, even // Only applies to ReflowChild; if true, don't delete the next-in-flow, even
// if the reflow is fully complete. // if the reflow is fully complete.
#define NS_FRAME_NO_DELETE_NEXT_IN_FLOW_CHILD 0x0020 #define NS_FRAME_NO_DELETE_NEXT_IN_FLOW_CHILD 0x0010
class nsOverflowContinuationTracker; class nsOverflowContinuationTracker;
namespace mozilla { namespace mozilla {

View File

@@ -887,7 +887,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
bool firstReflow = (firstKid->GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0; bool firstReflow = (firstKid->GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0;
ReflowChild(firstKid, aPresContext, kidSize, kidReflowState, 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)) { if (NS_FRAME_OVERFLOW_IS_INCOMPLETE(aStatus)) {
// Don't pass OVERFLOW_INCOMPLETE through tables until they can actually handle it // 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) //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; nsHTMLReflowMetrics desiredSize;
desiredSize.width = desiredSize.height = 0; desiredSize.width = desiredSize.height = 0;
ReflowChild(aTfoot, presContext, desiredSize, footerReflowState, ReflowChild(aTfoot, presContext, desiredSize, footerReflowState,
aReflowState.x, aReflowState.y, aReflowState.x, aReflowState.y, 0, footerStatus);
NS_FRAME_INVALIDATE_ON_MOVE, footerStatus);
PlaceChild(aReflowState, aTfoot, desiredSize, origTfootRect, PlaceChild(aReflowState, aTfoot, desiredSize, origTfootRect,
origTfootVisualOverflow); origTfootVisualOverflow);
} }
@@ -2826,8 +2825,7 @@ nsTableFrame::ReflowChildren(nsTableReflowState& aReflowState,
reorder = true; reorder = true;
rv = ReflowChild(kidFrame, presContext, desiredSize, kidReflowState, rv = ReflowChild(kidFrame, presContext, desiredSize, kidReflowState,
aReflowState.x, aReflowState.y, aReflowState.x, aReflowState.y, 0, aStatus);
NS_FRAME_INVALIDATE_ON_MOVE, aStatus);
if (reorder) { if (reorder) {
// reorder row groups the reflow may have changed the nextinflows // reorder row groups the reflow may have changed the nextinflows

View File

@@ -881,7 +881,7 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
nsReflowStatus status; nsReflowStatus status;
rv = ReflowChild(kidFrame, aPresContext, desiredSize, kidReflowState, 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 // 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 // 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, rv = ReflowChild(kidFrame, aPresContext, desiredSize, kidReflowState,
0, aReflowState.y, NS_FRAME_INVALIDATE_ON_MOVE, 0, aReflowState.y, 0, aStatus);
aStatus);
// Place the child // Place the child
PlaceChild(aPresContext, aReflowState, kidFrame, desiredSize, PlaceChild(aPresContext, aReflowState, kidFrame, desiredSize,