Bug 735898. Part 8: Speed up SortByZOrder. r=dbaron,a=blocking-fennec

This commit is contained in:
Robert O'Callahan 2012-04-19 14:40:43 +12:00
parent 54470c0981
commit c50d1ac412

View File

@ -846,9 +846,7 @@ static bool IsZOrderLEQ(nsDisplayItem* aItem1, nsDisplayItem* aItem2,
// z-indices here, because that might overflow a 32-bit int.
PRInt32 index1 = nsLayoutUtils::GetZIndex(aItem1->GetUnderlyingFrame());
PRInt32 index2 = nsLayoutUtils::GetZIndex(aItem2->GetUnderlyingFrame());
if (index1 == index2)
return IsContentLEQ(aItem1, aItem2, aClosure);
return index1 < index2;
return index1 <= index2;
}
void nsDisplayList::ExplodeAnonymousChildLists(nsDisplayListBuilder* aBuilder) {