Make ReconstructDocElementHierarchy work correctly even if we first blew away a
pseudo which had the root as its content. Bug 343293, r+sr=roc git-svn-id: svn://10.0.0.236/trunk@216439 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -667,8 +667,7 @@ DoCleanupFrameReferences(nsFrameManager* aFrameManager,
|
||||
}
|
||||
|
||||
// Remove the mapping from the content object to its frame
|
||||
aFrameManager->SetPrimaryFrameFor(content, nsnull);
|
||||
aFrameIn->RemovedAsPrimaryFrame();
|
||||
aFrameManager->RemoveAsPrimaryFrame(content, aFrameIn);
|
||||
aFrameManager->ClearAllUndisplayedContentIn(content);
|
||||
|
||||
// Recursively walk the child frames.
|
||||
@@ -9620,8 +9619,7 @@ DoDeletingFrameSubtree(nsFrameManager* aFrameManager,
|
||||
// Remove the mapping from the content object to its frame.
|
||||
nsIContent* content = aFrame->GetContent();
|
||||
if (content) {
|
||||
aFrameManager->SetPrimaryFrameFor(content, nsnull);
|
||||
aFrame->RemovedAsPrimaryFrame();
|
||||
aFrameManager->RemoveAsPrimaryFrame(content, aFrame);
|
||||
aFrameManager->ClearAllUndisplayedContentIn(content);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user