mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Better place to flush the buffer, suggested by Vidur
This commit is contained in:
parent
45b706bd8c
commit
9cf081e388
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user