mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1250377 - Part 1: Use MOZ_STYLO environment variable to switch on Servo-backed style system. r=bholley
This commit is contained in:
parent
89cac5abd1
commit
9de96733e9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user