Bug 735178 - Add error tolerance values when sorting preserve-3d layers. r=roc

This commit is contained in:
Matt Woodrow 2012-04-27 12:24:53 +12:00
parent 2ed9563c76
commit 6f0a2adcc3

View File

@ -156,7 +156,7 @@ static LayerSortOrder CompareDepth(Layer* aOne, Layer* aTwo) {
}
}
// If layers have the same depth keep the original order
if (highest >= 0) {
if (fabs(highest) < 0.1 || highest >= 0) {
return ABeforeB;
} else {
return BBeforeA;