Bug 687744 and bug 573078 - Make buffer allocations in the HTML parser fallible; deal with allocation failures; reuse the buffers of strings passed to the parser. r=Olli.Pettay.

This commit is contained in:
Henri Sivonen
2011-09-28 15:45:17 +03:00
parent fe6d43e51f
commit 1cde100e2a
21 changed files with 601 additions and 174 deletions

View File

@@ -58,15 +58,6 @@
#include "nsHtml5UTF16Buffer.h"
nsHtml5UTF16Buffer::nsHtml5UTF16Buffer(PRUnichar* buffer, PRInt32 start, PRInt32 end)
: buffer(buffer),
start(start),
end(end)
{
MOZ_COUNT_CTOR(nsHtml5UTF16Buffer);
}
PRInt32
nsHtml5UTF16Buffer::getStart()
{