Bug 465928 followup: correct typo in enum name - s/PERSERVE/PRESERVE/. No functional changes. r=roc
This commit is contained in:
@@ -4226,7 +4226,7 @@ nsBlockFrame::HandleOverflowPlaceholdersForPulledFrame(
|
||||
#ifdef DEBUG
|
||||
nsresult rv =
|
||||
#endif
|
||||
parent->DoRemoveFrame(frame, PERSERVE_REMOVED_FRAMES);
|
||||
parent->DoRemoveFrame(frame, PRESERVE_REMOVED_FRAMES);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "frame should be in parent's lists");
|
||||
|
||||
nsIFrame* lastOverflowPlace = aState.mOverflowPlaceholders.LastChild();
|
||||
@@ -5262,7 +5262,7 @@ static nsresult RemoveBlockChild(nsIFrame* aFrame, PRBool aDestroyFrames,
|
||||
NS_ASSERTION(nextBlock,
|
||||
"Our child's continuation's parent is not a block?");
|
||||
return nextBlock->DoRemoveFrame(aFrame,
|
||||
(aDestroyFrames ? 0 : nsBlockFrame::PERSERVE_REMOVED_FRAMES) |
|
||||
(aDestroyFrames ? 0 : nsBlockFrame::PRESERVE_REMOVED_FRAMES) |
|
||||
(aRemoveOnlyFluidContinuations ? 0 : nsBlockFrame::REMOVE_FIXED_CONTINUATIONS));
|
||||
}
|
||||
|
||||
@@ -5281,7 +5281,7 @@ nsBlockFrame::DoRemoveFrame(nsIFrame* aDeletedFrame, PRUint32 aFlags)
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
if (NS_FRAME_IS_OVERFLOW_CONTAINER & aDeletedFrame->GetStateBits()) {
|
||||
if (!(aFlags & PERSERVE_REMOVED_FRAMES)) {
|
||||
if (!(aFlags & PRESERVE_REMOVED_FRAMES)) {
|
||||
nsIFrame* nif = aDeletedFrame->GetNextInFlow();
|
||||
if (nif)
|
||||
static_cast<nsContainerFrame*>(nif->GetParent())
|
||||
@@ -5303,7 +5303,7 @@ nsBlockFrame::DoRemoveFrame(nsIFrame* aDeletedFrame, PRUint32 aFlags)
|
||||
}
|
||||
|
||||
if (aDeletedFrame->GetStateBits() & NS_FRAME_OUT_OF_FLOW) {
|
||||
NS_ASSERTION(!(aFlags & PERSERVE_REMOVED_FRAMES),
|
||||
NS_ASSERTION(!(aFlags & PRESERVE_REMOVED_FRAMES),
|
||||
"We can't not destroy out of flows");
|
||||
DoRemoveOutOfFlowFrame(aDeletedFrame);
|
||||
return NS_OK;
|
||||
@@ -5316,12 +5316,12 @@ nsBlockFrame::DoRemoveFrame(nsIFrame* aDeletedFrame, PRUint32 aFlags)
|
||||
nsFrameList* overflowPlaceholders = GetOverflowPlaceholders();
|
||||
if (overflowPlaceholders && overflowPlaceholders->RemoveFrame(aDeletedFrame)) {
|
||||
nsIFrame* nif = aDeletedFrame->GetNextInFlow();
|
||||
if (!(aFlags & PERSERVE_REMOVED_FRAMES)) {
|
||||
if (!(aFlags & PRESERVE_REMOVED_FRAMES)) {
|
||||
aDeletedFrame->Destroy();
|
||||
} else {
|
||||
aDeletedFrame->SetNextSibling(nsnull);
|
||||
}
|
||||
return RemoveBlockChild(nif, !(aFlags & PERSERVE_REMOVED_FRAMES),
|
||||
return RemoveBlockChild(nif, !(aFlags & PRESERVE_REMOVED_FRAMES),
|
||||
!(aFlags & REMOVE_FIXED_CONTINUATIONS));
|
||||
}
|
||||
}
|
||||
@@ -5426,7 +5426,7 @@ found_frame:;
|
||||
printf(" prevSibling=%p deletedNextContinuation=%p\n", prevSibling, deletedNextContinuation);
|
||||
#endif
|
||||
|
||||
if (aFlags & PERSERVE_REMOVED_FRAMES) {
|
||||
if (aFlags & PRESERVE_REMOVED_FRAMES) {
|
||||
aDeletedFrame->SetNextSibling(nsnull);
|
||||
} else {
|
||||
aDeletedFrame->Destroy();
|
||||
@@ -5487,7 +5487,7 @@ found_frame:;
|
||||
// consecutive lines. So for placeholders, just continue the slow easy way.
|
||||
if (isPlaceholder) {
|
||||
return RemoveBlockChild(deletedNextContinuation,
|
||||
!(aFlags & PERSERVE_REMOVED_FRAMES),
|
||||
!(aFlags & PRESERVE_REMOVED_FRAMES),
|
||||
!(aFlags & REMOVE_FIXED_CONTINUATIONS));
|
||||
}
|
||||
|
||||
@@ -5537,7 +5537,7 @@ found_frame:;
|
||||
#endif
|
||||
|
||||
// Advance to next flow block if the frame has more continuations
|
||||
return RemoveBlockChild(aDeletedFrame, !(aFlags & PERSERVE_REMOVED_FRAMES),
|
||||
return RemoveBlockChild(aDeletedFrame, !(aFlags & PRESERVE_REMOVED_FRAMES),
|
||||
!(aFlags & REMOVE_FIXED_CONTINUATIONS));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user