зеркало из https://github.com/mozilla/gecko-dev.git
Bug 896250: Return the max number, not the flag checking if the number was set. r=joe
This commit is contained in:
Родитель
5e860cac52
Коммит
0c56314e69
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче