mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 735898. Part 8: Speed up SortByZOrder. r=dbaron,a=blocking-fennec
This commit is contained in:
parent
54470c0981
commit
c50d1ac412
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user