mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 796212 followup: add #ifdef guard around static variables that are only used in #ifdef'd code, to fix build warning in non-MOZ_FLEXBOX-enabled builds.
This commit is contained in:
parent
5a509f3cc7
commit
7859bf8bf7
@ -110,12 +110,14 @@ typedef FrameMetrics::ViewID ViewID;
|
||||
|
||||
static ViewID sScrollIdCounter = FrameMetrics::START_SCROLL_ID;
|
||||
|
||||
#ifdef MOZ_FLEXBOX
|
||||
// These are indices into kDisplayKTable. They'll be initialized
|
||||
// the first time that FlexboxEnabledPrefChangeCallback() is invoked.
|
||||
static int32_t sIndexOfFlexInDisplayTable;
|
||||
static int32_t sIndexOfInlineFlexInDisplayTable;
|
||||
// This tracks whether those ^^ indices have been initialized
|
||||
static bool sAreFlexKeywordIndicesInitialized = false;
|
||||
#endif // MOZ_FLEXBOX
|
||||
|
||||
typedef nsDataHashtable<nsUint64HashKey, nsIContent*> ContentMap;
|
||||
static ContentMap* sContentMap = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user