Changed ContentChanged() to generate a reflow command

git-svn-id: svn://10.0.0.236/trunk@18364 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-01-22 23:07:09 +00:00
parent cd2edf3e7c
commit f311f2476e
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;
}