diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 7a72502384e2..03e50d46c5b8 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -460,6 +460,9 @@ bool nsLayoutUtils::IsAnimationLoggingEnabled() { } bool nsLayoutUtils::AreRetainedDisplayListsEnabled() { +#ifdef MOZ_WIDGET_ANDROID + return gfxPrefs::LayoutRetainDisplayList();; +#else if (XRE_IsContentProcess()) { return gfxPrefs::LayoutRetainDisplayList(); } @@ -470,6 +473,7 @@ bool nsLayoutUtils::AreRetainedDisplayListsEnabled() { // Retained display lists require e10s. return false; +#endif } bool nsLayoutUtils::DisplayRootHasRetainedDisplayListBuilder(nsIFrame* aFrame) {