зеркало из https://github.com/mozilla/pjs.git
Moved ContentChanged() logic to nsFrame since it was completely generic and
serves as reasonable default behavior for all frames
This commit is contained in:
Родитель
8b07e0d25c
Коммит
88e5de1f65
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче