Unregister our placeholder before destroying it. Bug 316267, r+sr=dbaron

This commit is contained in:
bzbarsky%mit.edu 2006-04-17 01:40:14 +00:00
Родитель 58267752ba
Коммит 80e195eb94
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -13320,6 +13320,11 @@ nsresult nsCSSFrameConstructor::RemoveFixedItems(const nsFrameConstructorState&
nsIFrame *placeholderFrame;
mPresShell->GetPlaceholderFrameFor(fixedChild, &placeholderFrame);
NS_ASSERTION(placeholderFrame, "no placeholder for fixed-pos frame");
NS_ASSERTION(placeholderFrame->GetType() ==
nsLayoutAtoms::placeholderFrame,
"Wrong type");
aState.mFrameManager->UnregisterPlaceholderFrame(
NS_STATIC_CAST(nsPlaceholderFrame*, placeholderFrame));
nsIFrame* placeholderParent = placeholderFrame->GetParent();
::DeletingFrameSubtree(aState.mFrameManager, placeholderFrame);
rv = aState.mFrameManager->RemoveFrame(placeholderParent, nsnull,