diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 7095865de0a..ee407c1c521 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -9671,16 +9671,6 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer, // Get the childFrame's parent frame nsIFrame* parentFrame = childFrame->GetParent(); - // See if we have an XBL insertion point. If so, then that's our - // real parent frame; if not, then the frame hasn't been built yet - // and we just bail. - nsIFrame* insertionPoint; - GetInsertionPoint(parentFrame, aChild, &insertionPoint); - if (! insertionPoint) - return NS_OK; - - parentFrame = insertionPoint; - if (parentFrame->GetType() == nsLayoutAtoms::frameSetFrame) { // Just reframe the parent, since framesets are weird like that. return RecreateFramesForContent(parentFrame->GetContent()); @@ -9854,7 +9844,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer, childFrame); } else { - rv = frameManager->RemoveFrame(insertionPoint, nsnull, childFrame); + rv = frameManager->RemoveFrame(parentFrame, nsnull, childFrame); } }