From aaff26f78e5467f5d8aed53a470965418e993503 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Tue, 9 Feb 1999 04:05:21 +0000 Subject: [PATCH] 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 --- layout/generic/nsImageFrame.cpp | 5 +++++ layout/html/base/src/nsImageFrame.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index fd99ab34b463..e842dc0b8322 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -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; } diff --git a/layout/html/base/src/nsImageFrame.cpp b/layout/html/base/src/nsImageFrame.cpp index fd99ab34b463..e842dc0b8322 100644 --- a/layout/html/base/src/nsImageFrame.cpp +++ b/layout/html/base/src/nsImageFrame.cpp @@ -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; }