зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1331326 - stylo: Shuffle some nsIDocument fields around to avoid rust-bindgen problem. r=bz
MozReview-Commit-ID: sYpRzC2t0E --HG-- extra : rebase_source : f9ce14bae5ca7adb74ffd8512927575c26126a81
This commit is contained in:
Родитель
3329bea285
Коммит
5c5c0e175d
|
@ -1284,8 +1284,6 @@ nsIDocument::nsIDocument()
|
|||
mUpgradeInsecurePreloads(false),
|
||||
mCharacterSet(NS_LITERAL_CSTRING("ISO-8859-1")),
|
||||
mNodeInfoManager(nullptr),
|
||||
mCompatMode(eCompatibility_FullStandards),
|
||||
mVisibilityState(dom::VisibilityState::Hidden),
|
||||
mIsInitialDocumentInWindow(false),
|
||||
mMayStartLayout(true),
|
||||
mVisible(true),
|
||||
|
@ -1300,6 +1298,8 @@ nsIDocument::nsIDocument()
|
|||
mFontFaceSetDirty(true),
|
||||
mGetUserFontSetCalled(false),
|
||||
mPostedFlushUserFontSet(false),
|
||||
mCompatMode(eCompatibility_FullStandards),
|
||||
mVisibilityState(dom::VisibilityState::Hidden),
|
||||
mBidiOptions(IBMBIDI_DEFAULT_BIDI_OPTIONS),
|
||||
mPartID(0),
|
||||
mDidFireDOMContentLoaded(true),
|
||||
|
|
|
@ -3032,24 +3032,12 @@ protected:
|
|||
// container for per-context fonts (downloadable, SVG, etc.)
|
||||
RefPtr<mozilla::dom::FontFaceSet> mFontFaceSet;
|
||||
|
||||
// Compatibility mode
|
||||
nsCompatibility mCompatMode;
|
||||
|
||||
// Our readyState
|
||||
ReadyState mReadyState;
|
||||
|
||||
// Whether this document has (or will have, once we have a pres shell) a
|
||||
// Gecko- or Servo-backed style system.
|
||||
mozilla::StyleBackendType mStyleBackendType;
|
||||
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
// Our visibility state
|
||||
mozilla::dom::VisibilityState mVisibilityState;
|
||||
static_assert(sizeof(mozilla::dom::VisibilityState) == sizeof(uint8_t),
|
||||
"Error size of mVisibilityState and mDummy");
|
||||
#else
|
||||
uint8_t mDummy;
|
||||
#endif
|
||||
// XXXheycam rust-bindgen currently doesn't generate correctly aligned fields
|
||||
// to represent the following bitfields if they are preceded by something
|
||||
// non-pointer aligned, so if adding non-pointer sized fields, please do so
|
||||
// somewhere other than right here.
|
||||
//
|
||||
// https://github.com/servo/rust-bindgen/issues/111
|
||||
|
||||
// True if BIDI is enabled.
|
||||
bool mBidiEnabled : 1;
|
||||
|
@ -3199,6 +3187,25 @@ protected:
|
|||
// True is document has ever been in a foreground window.
|
||||
bool mEverInForeground : 1;
|
||||
|
||||
// Compatibility mode
|
||||
nsCompatibility mCompatMode;
|
||||
|
||||
// Our readyState
|
||||
ReadyState mReadyState;
|
||||
|
||||
// Whether this document has (or will have, once we have a pres shell) a
|
||||
// Gecko- or Servo-backed style system.
|
||||
mozilla::StyleBackendType mStyleBackendType;
|
||||
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
// Our visibility state
|
||||
mozilla::dom::VisibilityState mVisibilityState;
|
||||
static_assert(sizeof(mozilla::dom::VisibilityState) == sizeof(uint8_t),
|
||||
"Error size of mVisibilityState and mDummy");
|
||||
#else
|
||||
uint8_t mDummy;
|
||||
#endif
|
||||
|
||||
enum Type {
|
||||
eUnknown, // should never be used
|
||||
eHTML,
|
||||
|
|
Загрузка…
Ссылка в новой задаче