From 4315cecdf4f16c4d6b9704b28c763ee271409cb2 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Fri, 16 Jun 2017 11:31:45 +0800 Subject: [PATCH] style: Tweak an import. --- components/style/style_adjuster.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 19ceecedca7..4c4a4518748 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -8,8 +8,6 @@ use app_units::Au; use properties::{self, CascadeFlags, ComputedValues}; use properties::{SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP, StyleBuilder}; -#[cfg(feature = "gecko")] -use properties::PROHIBIT_DISPLAY_CONTENTS; use properties::longhands::display::computed_value::T as display; use properties::longhands::float::computed_value::T as float; use properties::longhands::overflow_x::computed_value::T as overflow; @@ -281,6 +279,8 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// Native anonymous content converts display:contents into display:inline. #[cfg(feature = "gecko")] fn adjust_for_prohibited_display_contents(&mut self, flags: CascadeFlags) { + use properties::PROHIBIT_DISPLAY_CONTENTS; + // TODO: We should probably convert display:contents into display:none // in some cases too: https://drafts.csswg.org/css-display/#unbox if !flags.contains(PROHIBIT_DISPLAY_CONTENTS) ||