From 0e0466e34b55d669d3322086284c8cc07aeb6340 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Sun, 25 Apr 1999 16:59:39 +0000 Subject: [PATCH] Removed ContentChanged() and AttributeChanged() which are no longer need now that GetPrimaryFrameFor() always returns the out-of-flow frame git-svn-id: svn://10.0.0.236/trunk@29117 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsPlaceholderFrame.cpp | 27 ------------------- mozilla/layout/generic/nsPlaceholderFrame.h | 9 ------- .../html/base/src/nsPlaceholderFrame.cpp | 27 ------------------- .../layout/html/base/src/nsPlaceholderFrame.h | 9 ------- 4 files changed, 72 deletions(-) diff --git a/mozilla/layout/generic/nsPlaceholderFrame.cpp b/mozilla/layout/generic/nsPlaceholderFrame.cpp index ad3426ad1ae..03e940a0a24 100644 --- a/mozilla/layout/generic/nsPlaceholderFrame.cpp +++ b/mozilla/layout/generic/nsPlaceholderFrame.cpp @@ -78,33 +78,6 @@ nsPlaceholderFrame::Paint(nsIPresContext& aPresContext, return NS_OK; } -NS_IMETHODIMP -nsPlaceholderFrame::ContentChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsISupports* aSubContent) -{ - NS_ASSERTION(mContent == aChild, "bad content-changed target"); - - // Forward the notification to the out of flow frame - if (nsnull != mOutOfFlowFrame) { - return mOutOfFlowFrame->ContentChanged(aPresContext, aChild, aSubContent); - } - return NS_OK; -} - -NS_IMETHODIMP -nsPlaceholderFrame::AttributeChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsIAtom* aAttribute, - PRInt32 aHint) -{ - // Forward the notification to the out of flow frame - if (nsnull != mOutOfFlowFrame) { - return mOutOfFlowFrame->AttributeChanged(aPresContext, aChild, aAttribute, aHint); - } - return NS_OK; -} - NS_IMETHODIMP nsPlaceholderFrame::GetFrameType(nsIAtom** aType) const { diff --git a/mozilla/layout/generic/nsPlaceholderFrame.h b/mozilla/layout/generic/nsPlaceholderFrame.h index f1b1cdab421..07d45630c51 100644 --- a/mozilla/layout/generic/nsPlaceholderFrame.h +++ b/mozilla/layout/generic/nsPlaceholderFrame.h @@ -47,15 +47,6 @@ public: const nsRect& aDirtyRect, nsFramePaintLayer aWhichLayer); - NS_IMETHOD ContentChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsISupports* aSubContent); - - NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsIAtom* aAttribute, - PRInt32 aHint); - /** * Get the "type" of the frame * diff --git a/mozilla/layout/html/base/src/nsPlaceholderFrame.cpp b/mozilla/layout/html/base/src/nsPlaceholderFrame.cpp index ad3426ad1ae..03e940a0a24 100644 --- a/mozilla/layout/html/base/src/nsPlaceholderFrame.cpp +++ b/mozilla/layout/html/base/src/nsPlaceholderFrame.cpp @@ -78,33 +78,6 @@ nsPlaceholderFrame::Paint(nsIPresContext& aPresContext, return NS_OK; } -NS_IMETHODIMP -nsPlaceholderFrame::ContentChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsISupports* aSubContent) -{ - NS_ASSERTION(mContent == aChild, "bad content-changed target"); - - // Forward the notification to the out of flow frame - if (nsnull != mOutOfFlowFrame) { - return mOutOfFlowFrame->ContentChanged(aPresContext, aChild, aSubContent); - } - return NS_OK; -} - -NS_IMETHODIMP -nsPlaceholderFrame::AttributeChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsIAtom* aAttribute, - PRInt32 aHint) -{ - // Forward the notification to the out of flow frame - if (nsnull != mOutOfFlowFrame) { - return mOutOfFlowFrame->AttributeChanged(aPresContext, aChild, aAttribute, aHint); - } - return NS_OK; -} - NS_IMETHODIMP nsPlaceholderFrame::GetFrameType(nsIAtom** aType) const { diff --git a/mozilla/layout/html/base/src/nsPlaceholderFrame.h b/mozilla/layout/html/base/src/nsPlaceholderFrame.h index f1b1cdab421..07d45630c51 100644 --- a/mozilla/layout/html/base/src/nsPlaceholderFrame.h +++ b/mozilla/layout/html/base/src/nsPlaceholderFrame.h @@ -47,15 +47,6 @@ public: const nsRect& aDirtyRect, nsFramePaintLayer aWhichLayer); - NS_IMETHOD ContentChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsISupports* aSubContent); - - NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext, - nsIContent* aChild, - nsIAtom* aAttribute, - PRInt32 aHint); - /** * Get the "type" of the frame *