зеркало из https://github.com/mozilla/gecko-dev.git
Removed some commented out old code
This commit is contained in:
Родитель
d54546686d
Коммит
b7a4774af0
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче