Removed some commented out old code

This commit is contained in:
troy%netscape.com 1998-12-04 03:46:59 +00:00
Родитель d54546686d
Коммит b7a4774af0
2 изменённых файлов: 0 добавлений и 30 удалений

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

@ -388,21 +388,6 @@ nsImageFrame::GetDesiredSize(nsIPresContext* aPresContext,
aDesiredSize.height = mRect.height;
}
else {
// XXX Don't create a view, because we want whatever is below the image
// to show through while the image is loading; Likewise for transparent
// images and broken images
//
// What we really want to do is to create a view, and indicate that the
// view has a transparent content area. Do this while it's loading,
// and then when it's fully loaded mark the view as opaque if the
// image is opaque.
//
// We can't use that approach yet, because currently the compositor doesn't
// support transparent views...
#if 0
nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, this, mStyleContext, PR_TRUE);
#endif
// Ask the image loader for the desired size
mImageLoader.GetDesiredSize(aPresContext, aReflowState,
this, UpdateImageFrame,

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

@ -388,21 +388,6 @@ nsImageFrame::GetDesiredSize(nsIPresContext* aPresContext,
aDesiredSize.height = mRect.height;
}
else {
// XXX Don't create a view, because we want whatever is below the image
// to show through while the image is loading; Likewise for transparent
// images and broken images
//
// What we really want to do is to create a view, and indicate that the
// view has a transparent content area. Do this while it's loading,
// and then when it's fully loaded mark the view as opaque if the
// image is opaque.
//
// We can't use that approach yet, because currently the compositor doesn't
// support transparent views...
#if 0
nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, this, mStyleContext, PR_TRUE);
#endif
// Ask the image loader for the desired size
mImageLoader.GetDesiredSize(aPresContext, aReflowState,
this, UpdateImageFrame,