From a447ffcc9020cfca7ffc3a9a5bd908b3d7997147 Mon Sep 17 00:00:00 2001 From: troy Date: Fri, 8 May 1998 16:34:27 +0000 Subject: [PATCH] Moved ContentChanged() logic to nsFrame since it was completely generic and serves as reasonable default behavior for all frames git-svn-id: svn://10.0.0.236/trunk@1304 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsHTMLContainerFrame.cpp | 13 ------------- mozilla/layout/generic/nsHTMLContainerFrame.h | 5 ----- .../layout/html/base/src/nsHTMLContainerFrame.cpp | 13 ------------- mozilla/layout/html/base/src/nsHTMLContainerFrame.h | 5 ----- 4 files changed, 36 deletions(-) diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.cpp b/mozilla/layout/generic/nsHTMLContainerFrame.cpp index 38a9e394d68..c171c79dced 100644 --- a/mozilla/layout/generic/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/generic/nsHTMLContainerFrame.cpp @@ -192,19 +192,6 @@ NS_METHOD nsHTMLContainerFrame::ContentAppended(nsIPresShell* aShell, return NS_OK; } -NS_METHOD nsHTMLContainerFrame::ContentChanged(nsIPresShell* aShell, - nsIPresContext* aPresContext, - nsIContent* aContainer, - nsISupports* aSubContent) -{ - // Generate a reflow command with our geometric parent as the target, - // and us as the child frame - nsReflowCommand* cmd = new nsReflowCommand(aPresContext, mGeometricParent, - nsReflowCommand::FrameAppended, this); - aShell->AppendReflowCommand(cmd); - return NS_OK; -} - static PRBool HasSameMapping(nsIFrame* aFrame, nsIContent* aContent) { diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.h b/mozilla/layout/generic/nsHTMLContainerFrame.h index 1fe400249ae..812f6bf0d0b 100644 --- a/mozilla/layout/generic/nsHTMLContainerFrame.h +++ b/mozilla/layout/generic/nsHTMLContainerFrame.h @@ -51,11 +51,6 @@ public: nsIContent* aChild, PRInt32 aIndexInParent); - NS_IMETHOD ContentChanged(nsIPresShell* aShell, - nsIPresContext* aPresContext, - nsIContent* aChild, - nsISupports* aSubContent); - protected: virtual ~nsHTMLContainerFrame(); diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp index 38a9e394d68..c171c79dced 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp @@ -192,19 +192,6 @@ NS_METHOD nsHTMLContainerFrame::ContentAppended(nsIPresShell* aShell, return NS_OK; } -NS_METHOD nsHTMLContainerFrame::ContentChanged(nsIPresShell* aShell, - nsIPresContext* aPresContext, - nsIContent* aContainer, - nsISupports* aSubContent) -{ - // Generate a reflow command with our geometric parent as the target, - // and us as the child frame - nsReflowCommand* cmd = new nsReflowCommand(aPresContext, mGeometricParent, - nsReflowCommand::FrameAppended, this); - aShell->AppendReflowCommand(cmd); - return NS_OK; -} - static PRBool HasSameMapping(nsIFrame* aFrame, nsIContent* aContent) { diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.h b/mozilla/layout/html/base/src/nsHTMLContainerFrame.h index 1fe400249ae..812f6bf0d0b 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.h +++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.h @@ -51,11 +51,6 @@ public: nsIContent* aChild, PRInt32 aIndexInParent); - NS_IMETHOD ContentChanged(nsIPresShell* aShell, - nsIPresContext* aPresContext, - nsIContent* aChild, - nsISupports* aSubContent); - protected: virtual ~nsHTMLContainerFrame();