From f2b1c6b7cf8e844bcd99c6f0cb87f76f6ac3de68 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Mon, 11 Sep 2017 16:35:11 +0200 Subject: [PATCH] Do not use CVAS for the -servo-under-display-none property --- components/style/properties/longhand/inherited_box.mako.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/style/properties/longhand/inherited_box.mako.rs b/components/style/properties/longhand/inherited_box.mako.rs index 16779dfbf03..23a621309f2 100644 --- a/components/style/properties/longhand/inherited_box.mako.rs +++ b/components/style/properties/longhand/inherited_box.mako.rs @@ -256,17 +256,14 @@ ${helpers.single_keyword("image-rendering", spec="Nonstandard (internal layout use only)"> use std::fmt; use style_traits::ToCss; - use values::computed::ComputedValueAsSpecified; - - #[derive(Clone, Copy, Debug, Eq, PartialEq)] - #[cfg_attr(feature = "servo", derive(HeapSizeOf, Deserialize, Serialize))] + #[cfg_attr(feature = "servo", derive(Deserialize, HeapSizeOf, Serialize))] + #[derive(Clone, Copy, Debug, Eq, PartialEq, ToComputedValue)] pub struct SpecifiedValue(pub bool); pub mod computed_value { pub type T = super::SpecifiedValue; } - impl ComputedValueAsSpecified for SpecifiedValue {} pub fn get_initial_value() -> computed_value::T { SpecifiedValue(false)