diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index 73a5124150b4..0f1fb69392f8 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -1508,7 +1508,7 @@ nsDisplayItem::MaxActiveLayers() sMaxLayersCached = true; } - return sMaxLayers; + return sMaxLayersCached; } bool