diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 12:40:48 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 17:53:55 +0100 |
commit | 31e8e418ea888b3366128ba42a9c771780f97e87 (patch) | |
tree | f47d0f809e944341d1ea6a724153c2e7386ca2ba /components/style/style_adjuster.rs | |
parent | 5158f658104c1edbb87a94958c4ab424d3b854b4 (diff) | |
download | servo-31e8e418ea888b3366128ba42a9c771780f97e87.tar.gz servo-31e8e418ea888b3366128ba42a9c771780f97e87.zip |
Miscellaneous build / tidy fixes.
Diffstat (limited to 'components/style/style_adjuster.rs')
-rw-r--r-- | components/style/style_adjuster.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 13599c6630a..158be6d5dfb 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -9,7 +9,6 @@ use crate::computed_value_flags::ComputedValueFlags; use crate::dom::TElement; use crate::properties::longhands::display::computed_value::T as Display; use crate::properties::longhands::float::computed_value::T as Float; -use crate::properties::longhands::overflow_x::computed_value::T as Overflow; use crate::properties::longhands::position::computed_value::T as Position; use crate::properties::{self, ComputedValues, StyleBuilder}; @@ -153,7 +152,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { } } - /// https://html.spec.whatwg.org/multipage/interaction.html#inert-subtrees + /// https://html.spec.whatwg.org/multipage/#inert-subtrees /// /// If -moz-inert is applied then add: /// -moz-user-focus: none; @@ -168,6 +167,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// /// NOTE: If this or the pointer-events tweak is removed, then /// minimal-xul.css and the scrollbar style caching need to be tweaked. + #[cfg(feature = "gecko")] fn adjust_for_inert(&mut self) { use crate::values::specified::ui::CursorKind; use crate::values::specified::ui::UserSelect; @@ -529,6 +529,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// parent, but we need to make sure it's still scrollable. #[cfg(feature = "gecko")] fn adjust_for_text_control_editing_root(&mut self) { + use crate::properties::longhands::overflow_x::computed_value::T as Overflow; use crate::selector_parser::PseudoElement; if self.style.pseudo != Some(&PseudoElement::MozTextControlEditingRoot) { |