Added ContentChanged() member function

This commit is contained in:
troy 1998-05-08 04:56:47 +00:00
parent b3c5708bd1
commit fb1fbe4c8e
4 changed files with 36 additions and 0 deletions

View File

@ -192,6 +192,19 @@ 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)
{

View File

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

View File

@ -192,6 +192,19 @@ 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)
{

View File

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