mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Make modal dialog code more generic, and make it apply to fullscreen too behind a pref
For now, don't turn it on by default yet, because I want to wait for more discussion in https://github.com/w3c/csswg-drafts/issues/6965 and so on. But I think the code is simple enough to land this. Differential Revision: https://phabricator.services.mozilla.com/D147295
This commit is contained in:
parent
1cb9396455
commit
39ac4840ee
3 changed files with 4 additions and 4 deletions
|
@ -118,8 +118,8 @@ bitflags! {
|
||||||
const IN_MODAL_DIALOG_STATE = 1 << 42;
|
const IN_MODAL_DIALOG_STATE = 1 << 42;
|
||||||
/// <https://html.spec.whatwg.org/multipage/#inert-subtrees>
|
/// <https://html.spec.whatwg.org/multipage/#inert-subtrees>
|
||||||
const IN_MOZINERT_STATE = 1 << 43;
|
const IN_MOZINERT_STATE = 1 << 43;
|
||||||
/// State for the topmost dialog element in top layer
|
/// State for the topmost modal element in top layer
|
||||||
const IN_TOPMOST_MODAL_DIALOG_STATE = 1 << 44;
|
const IN_TOPMOST_MODAL_TOP_LAYER_STATE = 1 << 44;
|
||||||
/// Initially used for the devtools highlighter, but now somehow only
|
/// Initially used for the devtools highlighter, but now somehow only
|
||||||
/// used for the devtools accessibility inspector.
|
/// used for the devtools accessibility inspector.
|
||||||
const IN_DEVTOOLS_HIGHLIGHTED_STATE = 1 << 45;
|
const IN_DEVTOOLS_HIGHLIGHTED_STATE = 1 << 45;
|
||||||
|
|
|
@ -54,7 +54,7 @@ macro_rules! apply_non_ts_list {
|
||||||
("-moz-styleeditor-transitioning", MozStyleeditorTransitioning, IN_STYLEEDITOR_TRANSITIONING_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
("-moz-styleeditor-transitioning", MozStyleeditorTransitioning, IN_STYLEEDITOR_TRANSITIONING_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||||
("fullscreen", Fullscreen, IN_FULLSCREEN_STATE, _),
|
("fullscreen", Fullscreen, IN_FULLSCREEN_STATE, _),
|
||||||
("-moz-modal-dialog", MozModalDialog, IN_MODAL_DIALOG_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
("-moz-modal-dialog", MozModalDialog, IN_MODAL_DIALOG_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||||
("-moz-topmost-modal-dialog", MozTopmostModalDialog, IN_TOPMOST_MODAL_DIALOG_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
("-moz-topmost-modal", MozTopmostModal, IN_TOPMOST_MODAL_TOP_LAYER_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||||
("-moz-broken", MozBroken, IN_BROKEN_STATE, _),
|
("-moz-broken", MozBroken, IN_BROKEN_STATE, _),
|
||||||
("-moz-loading", MozLoading, IN_LOADING_STATE, _),
|
("-moz-loading", MozLoading, IN_LOADING_STATE, _),
|
||||||
("-moz-has-dir-attr", MozHasDirAttr, IN_HAS_DIR_ATTR_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
("-moz-has-dir-attr", MozHasDirAttr, IN_HAS_DIR_ATTR_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||||
|
|
|
@ -2006,7 +2006,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
||||||
NonTSPseudoClass::MozDirAttrRTL |
|
NonTSPseudoClass::MozDirAttrRTL |
|
||||||
NonTSPseudoClass::MozDirAttrLikeAuto |
|
NonTSPseudoClass::MozDirAttrLikeAuto |
|
||||||
NonTSPseudoClass::MozModalDialog |
|
NonTSPseudoClass::MozModalDialog |
|
||||||
NonTSPseudoClass::MozTopmostModalDialog |
|
NonTSPseudoClass::MozTopmostModal |
|
||||||
NonTSPseudoClass::Active |
|
NonTSPseudoClass::Active |
|
||||||
NonTSPseudoClass::Hover |
|
NonTSPseudoClass::Hover |
|
||||||
NonTSPseudoClass::MozAutofillPreview |
|
NonTSPseudoClass::MozAutofillPreview |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue