зеркало из https://github.com/mozilla/pjs.git
Bug 329974: Share textdata for common textnode values. r/sr=jst
This commit is contained in:
Родитель
ae80239e8f
Коммит
9e90e92a0a
|
@ -125,7 +125,7 @@ nsTextFragment::operator=(const nsTextFragment& aOther)
|
||||||
else {
|
else {
|
||||||
m2b = NS_STATIC_CAST(PRUnichar*,
|
m2b = NS_STATIC_CAST(PRUnichar*,
|
||||||
nsMemory::Clone(aOther.m2b, aOther.mState.mLength *
|
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) {
|
if (aOther.mState.mIs2b) {
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче