Moved ContentChanged() logic to nsFrame since it was completely generic and

serves as reasonable default behavior for all frames
This commit is contained in:
troy 1998-05-08 16:34:27 +00:00
Родитель 8b07e0d25c
Коммит 88e5de1f65
4 изменённых файлов: 0 добавлений и 36 удалений

Просмотреть файл

@ -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)
{

Просмотреть файл

@ -51,11 +51,6 @@ public:
nsIContent* aChild,
PRInt32 aIndexInParent);
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
nsIPresContext* aPresContext,
nsIContent* aChild,
nsISupports* aSubContent);
protected:
virtual ~nsHTMLContainerFrame();

Просмотреть файл

@ -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)
{

Просмотреть файл

@ -51,11 +51,6 @@ public:
nsIContent* aChild,
PRInt32 aIndexInParent);
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
nsIPresContext* aPresContext,
nsIContent* aChild,
nsISupports* aSubContent);
protected:
virtual ~nsHTMLContainerFrame();