diff --git a/components/style/element_state.rs b/components/style/element_state.rs index d8b4d680377..dbc04ff0fdc 100644 --- a/components/style/element_state.rs +++ b/components/style/element_state.rs @@ -138,3 +138,16 @@ bitflags! { const IN_AUTOFILL_PREVIEW_STATE = 1 << 51, } } + +bitflags! { + /// Event-based document states. + /// + /// NB: Is important for this to remain in sync with Gecko's + /// dom/base/nsIDocument.h. + pub flags DocumentState: u64 { + /// RTL locale: specific to the XUL localedir attribute + const NS_DOCUMENT_STATE_RTL_LOCALE = 1 << 0, + /// Window activation status + const NS_DOCUMENT_STATE_WINDOW_INACTIVE = 1 << 1, + } +} diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 3c0d2d94506..ba1735b445a 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -552,6 +552,9 @@ extern "C" { extern "C" { pub fn Gecko_ElementState(element: RawGeckoElementBorrowed) -> u64; } +extern "C" { + pub fn Gecko_DocumentState(aDocument: *const nsIDocument) -> u64; +} extern "C" { pub fn Gecko_IsTextNode(node: RawGeckoNodeBorrowed) -> bool; } diff --git a/components/style/gecko/non_ts_pseudo_class_list.rs b/components/style/gecko/non_ts_pseudo_class_list.rs index 92da05b5b64..17ffd0e7046 100644 --- a/components/style/gecko/non_ts_pseudo_class_list.rs +++ b/components/style/gecko/non_ts_pseudo_class_list.rs @@ -26,8 +26,6 @@ * * Pending pseudo-classes: * - * :-moz-window-inactive. - * * :scope ->