temporary topcrash fix: make sure stale anonymoux content is removed from the undisplayed map when a style sheet is added. b=118014 r=dbaron sr=kin

NOTE: bug 136704 has been opened for making the real fix, and reference to this patch has been noted therein.
This commit is contained in:
attinasi%netscape.com 2002-04-14 15:34:02 +00:00
Родитель 699befb430
Коммит 174316a5db
2 изменённых файлов: 14 добавлений и 12 удалений

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

@ -5368,15 +5368,16 @@ PresShell::ReconstructStyleData(PRBool aRebuildRuleTree)
cssFrameConstructor->ProcessRestyledFrames(changeList, mPresContext);
changeList.Clear();
// Clear all undisplayed content in the undisplayed content map.
// These cached style contexts will no longer be valid following
// a full rule tree reconstruct.
frameManager->ClearUndisplayedContentMap();
// Now do a complete re-resolve of our style tree.
set->BeginRuleTreeReconstruct();
}
// Clear all undisplayed content in the undisplayed content map.
// These cached style contexts will no longer be valid
// HACK? see bug 118014 - this is really be done because some XUL anonymous content
// may have been removed but not cleared from the undisplayed map
frameManager->ClearUndisplayedContentMap();
PRInt32 frameChange = NS_STYLE_HINT_NONE;
frameManager->ComputeStyleChangeFor(mPresContext, rootFrame,
kNameSpaceID_Unknown, nsnull,

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

@ -5368,15 +5368,16 @@ PresShell::ReconstructStyleData(PRBool aRebuildRuleTree)
cssFrameConstructor->ProcessRestyledFrames(changeList, mPresContext);
changeList.Clear();
// Clear all undisplayed content in the undisplayed content map.
// These cached style contexts will no longer be valid following
// a full rule tree reconstruct.
frameManager->ClearUndisplayedContentMap();
// Now do a complete re-resolve of our style tree.
set->BeginRuleTreeReconstruct();
}
// Clear all undisplayed content in the undisplayed content map.
// These cached style contexts will no longer be valid
// HACK? see bug 118014 - this is really be done because some XUL anonymous content
// may have been removed but not cleared from the undisplayed map
frameManager->ClearUndisplayedContentMap();
PRInt32 frameChange = NS_STYLE_HINT_NONE;
frameManager->ComputeStyleChangeFor(mPresContext, rootFrame,
kNameSpaceID_Unknown, nsnull,