Bug 1412542 - Fix crashes on products other than Firefox.
MozReview-Commit-ID: G9DeMR5o8F3
--- a/gfx/config/gfxVars.h
+++ b/gfx/config/gfxVars.h
@@ -42,20 +42,20 @@ class gfxVarReceiver;
_(UseOMTP, bool, false) \
_(AllowD3D11KeyedMutex, bool, false) \
/* Add new entries above this line. */
// Define the default animation backend on the compositor. Now we don't use
// stylo on the compositor only on Android, and this is a fixed flag. If
// we want to update this flag, please add a new gfxVars for it.
-#if defined(ANDROID)
+#if defined(MOZ_STYLO) && !defined(ANDROID)
+ #define USE_STYLO_ON_COMPOSITOR true
+#else
#define USE_STYLO_ON_COMPOSITOR false
-#else
- #define USE_STYLO_ON_COMPOSITOR true
#endif
// Some graphics settings are computed on the UI process and must be
// communicated to content and GPU processes. gfxVars helps facilitate
// this. Its function is similar to gfxPrefs, except rather than hold
// user preferences, it holds dynamically computed values.
//
// Each variable in GFX_VARS_LIST exposes the following static methods: