Bug 287127. Avoid using GetContentInsertionFrame when the frame hierarchy is not hooked up. r+sr=bzbarsky

This commit is contained in:
roc+%cs.cmu.edu 2005-03-23 03:39:32 +00:00
parent 87c224f2cb
commit 745e51aeeb

View File

@ -7895,8 +7895,7 @@ nsCSSFrameConstructor::GetAbsoluteContainingBlock(nsIFrame* aFrame)
if (disp->IsPositioned() && disp->mDisplay != NS_STYLE_DISPLAY_TABLE) {
// Find the outermost wrapped block under this frame
for (nsIFrame* wrappedFrame = frame->GetContentInsertionFrame();
wrappedFrame != frame->GetParent();
for (nsIFrame* wrappedFrame = aFrame; wrappedFrame != frame->GetParent();
wrappedFrame = wrappedFrame->GetParent()) {
nsIAtom* frameType = wrappedFrame->GetType();
if (nsLayoutAtoms::areaFrame == frameType ||