fixed bug 40577

r=rickg
a=leaf
This commit is contained in:
buster%netscape.com 2000-05-25 19:26:27 +00:00
parent 7c6a2b6db7
commit e0fdaba6a7
2 changed files with 6 additions and 10 deletions

View File

@ -8982,14 +8982,12 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
// remove the mapping from content objects to frames
DeletingFrameSubtree(aPresContext, shell, frameManager, childFrame);
// See if the child frame is a floating or positioned frame
// See if the child frame is a floating frame
// (positioned frames are handled below in the "else" clause)
const nsStyleDisplay* display;
childFrame->GetStyleData(eStyleStruct_Display,
(const nsStyleStruct*&)display);
const nsStylePosition* position;
childFrame->GetStyleData(eStyleStruct_Position,
(const nsStyleStruct*&)position);
if (display->IsFloating() || position->IsPositioned()) {
if (display->IsFloating()) {
#ifdef NOISY_FIRST_LETTER
printf(" ==> child display is still floating!\n");
#endif

View File

@ -8982,14 +8982,12 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
// remove the mapping from content objects to frames
DeletingFrameSubtree(aPresContext, shell, frameManager, childFrame);
// See if the child frame is a floating or positioned frame
// See if the child frame is a floating frame
// (positioned frames are handled below in the "else" clause)
const nsStyleDisplay* display;
childFrame->GetStyleData(eStyleStruct_Display,
(const nsStyleStruct*&)display);
const nsStylePosition* position;
childFrame->GetStyleData(eStyleStruct_Position,
(const nsStyleStruct*&)position);
if (display->IsFloating() || position->IsPositioned()) {
if (display->IsFloating()) {
#ifdef NOISY_FIRST_LETTER
printf(" ==> child display is still floating!\n");
#endif