bug #66562: r=harish, sr=brendan, a=blizzard. Make |document.write| work.

git-svn-id: svn://10.0.0.236/trunk@86935 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2001-02-13 21:26:58 +00:00
parent b55a3421e5
commit c1d8f1bc86
18 changed files with 142 additions and 100 deletions

View File

@@ -104,6 +104,7 @@ nsSharedBufferList::SplitBuffer( const Position& aSplitPosition, SplitDispositio
// if the caller specifically asked to split off the right side of the buffer-to-be-split
// or else if they asked for the minimum amount of work, and that turned out to be the right side...
ptrdiff_t savedLength = mTotalDataLength;
if ( aSplitDirection==kSplitCopyRightData ||
( aSplitDirection==kSplitCopyLeastData && ((bufferToSplit->DataLength() >> 1) <= splitOffset) ) )
{
@@ -119,6 +120,8 @@ nsSharedBufferList::SplitBuffer( const Position& aSplitPosition, SplitDispositio
LinkBuffer(bufferToSplit->mPrev, new_buffer, bufferToSplit);
bufferToSplit->DataStart(aSplitPosition.mPosInBuffer);
}
mTotalDataLength = savedLength;
// duh! splitting a buffer doesn't change the length.
}