mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
Added ContentChanged() member function
This commit is contained in:
parent
b3c5708bd1
commit
fb1fbe4c8e
@ -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)
|
||||
{
|
||||
|
@ -51,6 +51,11 @@ public:
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInParent);
|
||||
|
||||
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
nsISupports* aSubContent);
|
||||
|
||||
protected:
|
||||
virtual ~nsHTMLContainerFrame();
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -51,6 +51,11 @@ public:
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInParent);
|
||||
|
||||
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
nsISupports* aSubContent);
|
||||
|
||||
protected:
|
||||
virtual ~nsHTMLContainerFrame();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user