Better place to flush the buffer, suggested by Vidur

This commit is contained in:
akkana%netscape.com 1999-06-29 00:26:06 +00:00
parent 45b706bd8c
commit 9cf081e388
2 changed files with 4 additions and 4 deletions

View File

@ -219,6 +219,8 @@ nsHTMLFragmentContentSink::WillBuildModel(void)
NS_IMETHODIMP
nsHTMLFragmentContentSink::DidBuildModel(PRInt32 aQualityLevel)
{
FlushText();
return NS_OK;
}
@ -569,8 +571,6 @@ nsHTMLFragmentContentSink::AddText(const nsString& aString)
addLen -= amount;
}
FlushText();
return NS_OK;
}

View File

@ -219,6 +219,8 @@ nsHTMLFragmentContentSink::WillBuildModel(void)
NS_IMETHODIMP
nsHTMLFragmentContentSink::DidBuildModel(PRInt32 aQualityLevel)
{
FlushText();
return NS_OK;
}
@ -569,8 +571,6 @@ nsHTMLFragmentContentSink::AddText(const nsString& aString)
addLen -= amount;
}
FlushText();
return NS_OK;
}