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:
roc+%cs.cmu.edu 2005-04-26 02:31:19 +00:00
parent 8cfd926ecc
commit 977c43081f

View File

@ -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);
}