зеркало из https://github.com/mozilla/gecko-dev.git
Bug 776306: When prepending to a display list, only update its 'mTop' pointer if it was empty. r=roc
This commit is contained in:
Родитель
d2153b730e
Коммит
a77d92bb74
|
@ -1008,8 +1008,10 @@ public:
|
|||
void AppendToBottom(nsDisplayList* aList) {
|
||||
if (aList->mSentinel.mAbove) {
|
||||
aList->mTop->mAbove = mSentinel.mAbove;
|
||||
mTop = aList->mTop;
|
||||
mSentinel.mAbove = aList->mSentinel.mAbove;
|
||||
if (mTop == &mSentinel) {
|
||||
mTop = aList->mTop;
|
||||
}
|
||||
|
||||
aList->mTop = &aList->mSentinel;
|
||||
aList->mSentinel.mAbove = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче