Bug 896250: Return the max number, not the flag checking if the number was set. r=joe

This commit is contained in:
Milan Sreckovic 2013-07-22 17:05:21 -04:00
Родитель 5e860cac52
Коммит 0c56314e69
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1500,7 +1500,7 @@ nsDisplayItem::ForceActiveLayers()
/* static */ int32_t
nsDisplayItem::MaxActiveLayers()
{
static int32_t sMaxLayers = false;
static int32_t sMaxLayers = -1;
static bool sMaxLayersCached = false;
if (!sMaxLayersCached) {
@ -1508,7 +1508,7 @@ nsDisplayItem::MaxActiveLayers()
sMaxLayersCached = true;
}
return sMaxLayersCached;
return sMaxLayers;
}
bool