author | Matt Woodrow <mwoodrow@mozilla.com> |
Fri, 27 Apr 2012 12:24:53 +1200 | |
changeset 92576 | 302c5a56596573df8124f30823a2e798e2b17a4f |
parent 92575 | 7a077df0c773fc9044cfa33ec58a64ff919f5de4 |
child 92577 | 20f5d6d265cb16b1ff206966cceab4eee6cb8255 |
push id | 22544 |
push user | emorley@mozilla.com |
push date | Fri, 27 Apr 2012 11:53:27 +0000 |
treeherder | mozilla-central@d871849ac3a3 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | roc |
bugs | 735178 |
milestone | 15.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/gfx/layers/LayerSorter.cpp +++ b/gfx/layers/LayerSorter.cpp @@ -151,17 +151,17 @@ static LayerSortOrder CompareDepth(Layer gfxFloat difference = otherDepth - ourDepth; if (fabs(difference) > fabs(highest)) { highest = difference; } } // 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; } } #ifdef DEBUG static bool gDumpLayerSortList = getenv("MOZ_DUMP_LAYER_SORT_LIST") != 0;