Bug 1636974 - Unbust base toolchain builds by working around a GCC bug. CLOSED TREE

MANUAL PUSH: Unbust base toolchain builds, CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2020-05-12 20:47:25 +02:00
Родитель ed46f1f078
Коммит 52792dc151
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -206,7 +206,7 @@ class Loader final {
nsIURI*, SheetParsingMode = eAuthorSheetFeatures,
UseSystemPrincipal = UseSystemPrincipal::No);
enum class IsPreload {
enum class IsPreload : uint8_t {
No,
// This is a speculative load initiated by a <link rel=stylesheet> tag
// scanned by the parser, or @import rules found in a <style> tag.

Просмотреть файл

@ -180,7 +180,11 @@ class SheetLoadData final : public nsIRunnable, public nsIThreadObserver {
bool mLoadFailed : 1;
// Whether this is a preload, and which kind of preload it is.
const IsPreload mIsPreload : 2;
//
// TODO(emilio): This can become a bitfield once we build with a GCC version
// that has the fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414,
// which causes a false positive warning here.
const IsPreload mIsPreload;
// This is the element that imported the sheet. Needed to get the
// charset set on it and to fire load/error events.