Changed ContentChanged() to generate a reflow command

This commit is contained in:
troy@netscape.com
1999-01-22 23:07:09 +00:00
parent 446813cbdd
commit e81b4ca16c
2 changed files with 24 additions and 0 deletions

View File

@@ -1297,6 +1297,18 @@ nsFrame::ContentChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
nsISupports* aSubContent)
{
nsIPresShell* shell;
shell = aPresContext->GetShell();
nsIReflowCommand* reflowCmd;
nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, this,
nsIReflowCommand::ContentChanged);
if (NS_SUCCEEDED(rv)) {
shell->AppendReflowCommand(reflowCmd);
NS_RELEASE(reflowCmd);
}
NS_RELEASE(shell);
return NS_OK;
}