mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1351200 - Part 1: stylo: Allow fetching prefs on servo traversal threads; r=froydnj
MozReview-Commit-ID: 7MMWyX1t5CR
This commit is contained in:
parent
2215f699e3
commit
7bb5610731
@ -26,6 +26,7 @@
|
||||
#include "mozilla/ArenaAllocatorExtensions.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
#include "mozilla/ServoStyleSet.h"
|
||||
#include "mozilla/dom/PContent.h"
|
||||
#include "mozilla/dom/ContentPrefs.h"
|
||||
#include "nsQuickSort.h"
|
||||
@ -762,7 +763,7 @@ inInitArray(const char* key)
|
||||
PrefHashEntry* pref_HashTableLookup(const char *key)
|
||||
{
|
||||
#ifndef MOZ_B2G
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(NS_IsMainThread() || mozilla::ServoStyleSet::IsInServoTraversal());
|
||||
#endif
|
||||
MOZ_ASSERT((!XRE_IsContentProcess() || gPhase != START),
|
||||
"pref access before commandline prefs set");
|
||||
|
Loading…
Reference in New Issue
Block a user