diff --git a/components/style/properties/longhands/ui.mako.rs b/components/style/properties/longhands/ui.mako.rs index 549327739e5..c54582e2584 100644 --- a/components/style/properties/longhands/ui.mako.rs +++ b/components/style/properties/longhands/ui.mako.rs @@ -39,6 +39,7 @@ ${helpers.predefined_type( gecko_ffi_name="mUserSelect", alias="-webkit-user-select", animation_value_type="discrete", + needs_context=False, spec="https://drafts.csswg.org/css-ui-4/#propdef-user-select", )} diff --git a/components/style/values/specified/ui.rs b/components/style/values/specified/ui.rs index 200bff54032..4095bdfa89b 100644 --- a/components/style/values/specified/ui.rs +++ b/components/style/values/specified/ui.rs @@ -141,11 +141,6 @@ impl Parse for ScrollbarColor { } } -fn in_ua_sheet(context: &ParserContext) -> bool { - use crate::stylesheets::Origin; - context.stylesheet_origin == Origin::UserAgent -} - /// The specified value for the `user-select` property. /// /// https://drafts.csswg.org/css-ui-4/#propdef-user-select @@ -168,15 +163,6 @@ pub enum UserSelect { Text, #[parse(aliases = "-moz-none")] None, - /// Force selection of all children, unless an ancestor has `none` set. + /// Force selection of all children. All, - /// Like `text`, except that it won't get overridden by ancestors having - /// `all`. - /// - /// FIXME(emilio): This only has one use in contenteditable.css, can we find - /// a better way to do this? - /// - /// See bug 1181130. - #[parse(condition = "in_ua_sheet")] - MozText, }