From b7a4774af018739ab9a15a597148198f3e7d5d2f Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 4 Dec 1998 03:46:59 +0000 Subject: [PATCH] Removed some commented out old code --- layout/generic/nsImageFrame.cpp | 15 --------------- layout/html/base/src/nsImageFrame.cpp | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index 30c508aaa030..6f4f5f4babee 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -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, diff --git a/layout/html/base/src/nsImageFrame.cpp b/layout/html/base/src/nsImageFrame.cpp index 30c508aaa030..6f4f5f4babee 100644 --- a/layout/html/base/src/nsImageFrame.cpp +++ b/layout/html/base/src/nsImageFrame.cpp @@ -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,