Bug 329974: Share textdata for common textnode values. r/sr=jst

This commit is contained in:
cvshook%sicking.cc 2006-03-24 03:39:47 +00:00
parent 4845457d08
commit fe78375178

View File

@ -125,7 +125,7 @@ nsTextFragment::operator=(const nsTextFragment& aOther)
else {
m2b = NS_STATIC_CAST(PRUnichar*,
nsMemory::Clone(aOther.m2b, aOther.mState.mLength *
(aOther.mState.mIs2b ? sizeof(PRUnichar) : sizeof(char)));
(aOther.mState.mIs2b ? sizeof(PRUnichar) : sizeof(char))));
if (aOther.mState.mIs2b) {
}