Bug 696651 part 2 - Establish document.write() insertion position before re-entrant calls can occur. r=Olli.Pettay.
This commit is contained in:
@@ -53,3 +53,17 @@ nsHtml5UTF16Buffer::DeleteBuffer()
|
||||
{
|
||||
delete[] buffer;
|
||||
}
|
||||
|
||||
void
|
||||
nsHtml5UTF16Buffer::Swap(nsHtml5UTF16Buffer* aOther)
|
||||
{
|
||||
PRUnichar* tempBuffer = buffer;
|
||||
PRInt32 tempStart = start;
|
||||
PRInt32 tempEnd = end;
|
||||
buffer = aOther->buffer;
|
||||
start = aOther->start;
|
||||
end = aOther->end;
|
||||
aOther->buffer = tempBuffer;
|
||||
aOther->start = tempStart;
|
||||
aOther->end = tempEnd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user