Fix broken nsLineList::swap implementation. (Bug 652053) r=roc

This commit is contained in:
L. David Baron 2011-04-22 18:36:23 -07:00
parent 5595712db2
commit e0c41c779b

View File

@ -1379,6 +1379,16 @@ class nsLineList {
link_type tmp(y.mLink);
y.mLink = mLink;
mLink = tmp;
if (!empty()) {
mLink._mNext->_mPrev = &mLink;
mLink._mPrev->_mNext = &mLink;
}
if (!y.empty()) {
y.mLink._mNext->_mPrev = &y.mLink;
y.mLink._mPrev->_mNext = &y.mLink;
}
}
void clear()