Turned off some code until the frame construction code handles the case

where the replaced element that can't be rendered is floated or absolutely
positioned
This commit is contained in:
troy%netscape.com 1999-02-09 04:05:21 +00:00
Родитель 776da37489
Коммит aaff26f78e
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -382,10 +382,15 @@ UpdateImageFrame(nsIPresContext& aPresContext, nsIFrame* aFrame,
NS_RELEASE(content);
}
} else if (NS_IMAGE_LOAD_STATUS_ERROR & aStatus) {
// XXX Turned off for the time being until the frame construction code for
// images that can't be rendered handles floated and absolutely positioned
// images...
#if 0
// We failed to load the image. Notify the pres shell
nsIPresShell* presShell = aPresContext.GetShell();
presShell->CantRenderReplacedElement(&aPresContext, aFrame);
NS_RELEASE(presShell);
#endif
}
return NS_OK;
}

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

@ -382,10 +382,15 @@ UpdateImageFrame(nsIPresContext& aPresContext, nsIFrame* aFrame,
NS_RELEASE(content);
}
} else if (NS_IMAGE_LOAD_STATUS_ERROR & aStatus) {
// XXX Turned off for the time being until the frame construction code for
// images that can't be rendered handles floated and absolutely positioned
// images...
#if 0
// We failed to load the image. Notify the pres shell
nsIPresShell* presShell = aPresContext.GetShell();
presShell->CantRenderReplacedElement(&aPresContext, aFrame);
NS_RELEASE(presShell);
#endif
}
return NS_OK;
}