mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 291222. Sort display list elements before we lose information about relative ordering by overwriting the topmost bit. r+sr=bzbarsky,a=asa
This commit is contained in:
parent
8cfd926ecc
commit
977c43081f
@ -1196,7 +1196,9 @@ static void SortByZOrder(DisplayZTreeNode *aNode, nsVoidArray &aBuffer, nsVoidAr
|
||||
e = eNext;
|
||||
}
|
||||
}
|
||||
} else if (aForceSort || !autoZIndex) {
|
||||
} else if (aForceSort || !autoZIndex || aNode->mView->IsTopMost()) {
|
||||
// We must do a sort now if we're going to update all the topmost bits
|
||||
// below
|
||||
ApplyZOrderStableSort(aBuffer, aMergeTmp, sortStartIndex, sortEndIndex);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user