mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix broken nsLineList::swap implementation. (Bug 652053) r=roc
This commit is contained in:
parent
5595712db2
commit
e0c41c779b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user