Bug 1250377 - Part 1: Use MOZ_STYLO environment variable to switch on Servo-backed style system. r=bholley

This commit is contained in:
Cameron McCormack 2016-02-24 18:01:12 +11:00
parent 89cac5abd1
commit 9de96733e9

View File

@ -40,6 +40,7 @@
#include "mozilla/RestyleLogging.h"
#include "Units.h"
#include "mozilla/RestyleManagerHandle.h"
#include "prenv.h"
class nsAString;
class nsIPrintSettings;
@ -1068,6 +1069,16 @@ public:
mHasWarnedAboutPositionedTableParts = true;
}
static bool StyloEnabled()
{
#ifdef MOZ_STYLO
static bool enabled = PR_GetEnv("MOZ_STYLO");
return enabled;
#else
return false;
#endif
}
protected:
friend class nsRunnableMethod<nsPresContext>;
void ThemeChangedInternal();