From 04ed47af16d418f170f760c67168a69f38a34f0a Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 2 Jul 1999 22:41:42 +0000 Subject: [PATCH] Fixed a compiler warning --- layout/base/nsCSSFrameConstructor.cpp | 2 -- layout/html/style/src/nsCSSFrameConstructor.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 1860e7cb272f..479afbc7e246 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -5415,8 +5415,6 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresContext* aPresContext, nsIFrame* newFrame = frameItems.childList; if (NS_SUCCEEDED(rv)) { // Delete the current frame and insert the new frame - nsCOMPtr presShell; - aPresContext->GetShell(getter_AddRefs(presShell)); parentFrame->RemoveFrame(*aPresContext, *presShell, listName, aFrame); if (placeholderFrame) { // Remove the association between the old frame and its placeholder diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index 1860e7cb272f..479afbc7e246 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -5415,8 +5415,6 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresContext* aPresContext, nsIFrame* newFrame = frameItems.childList; if (NS_SUCCEEDED(rv)) { // Delete the current frame and insert the new frame - nsCOMPtr presShell; - aPresContext->GetShell(getter_AddRefs(presShell)); parentFrame->RemoveFrame(*aPresContext, *presShell, listName, aFrame); if (placeholderFrame) { // Remove the association between the old frame and its placeholder