Bug 1304704 - Add fudge factor to asserts in ClampColorStops() - r=mstange

This commit is contained in:
Edwin Flores 2016-09-26 09:54:13 +01:00
Родитель 31ba17fbcb
Коммит 2c4a3e9768
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2583,8 +2583,8 @@ ClampColorStops(nsTArray<ColorStop>& aStops)
}
}
MOZ_ASSERT(aStops[0].mPosition >= 0);
MOZ_ASSERT(aStops.LastElement().mPosition <= 1);
MOZ_ASSERT(aStops[0].mPosition >= -1e6);
MOZ_ASSERT(aStops.LastElement().mPosition - 1 <= 1e6);
// The end points won't exist yet if they don't fall in the original range of
// |aStops|. Create them if needed.