Leave the placeholder's pointer to the out-of-flow intact because the float cache depends on it later on. b=348688 r=bzbarsky sr=roc

git-svn-id: svn://10.0.0.236/trunk@207728 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2006-08-17 13:15:26 +00:00
parent b8ac8a7d62
commit 3f20c69ea2
4 changed files with 2 additions and 36 deletions

View File

@@ -523,34 +523,6 @@ nsLineBox::RemoveFloat(nsIFrame* aFrame)
return PR_FALSE;
}
void
nsLineBox::RemovePlaceholderDescendantsOf(nsIFrame* aFrame)
{
if (IsInline() && mInlineData) {
nsFloatCache* fc = mInlineData->mFloats.Head();
while (fc) {
nsIFrame* frame = fc->mPlaceholder;
while (frame && frame != aFrame) {
if (frame->IsFloatContainingBlock()) {
frame = nsnull;
break;
}
frame = frame->GetParent();
}
if (NS_UNLIKELY(frame != nsnull)) {
nsFloatCache* next = fc->Next();
mInlineData->mFloats.Remove(fc);
delete fc;
MaybeFreeData();
fc = next;
}
else {
fc = fc->Next();
}
}
}
}
void
nsLineBox::SetCombinedArea(const nsRect& aCombinedArea)
{