From b16c2572a9a5faa56c7c4f94b7693a72c4a53c23 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 -moz-force-broken-image-icon property --- components/style/properties/longhand/ui.mako.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/style/properties/longhand/ui.mako.rs b/components/style/properties/longhand/ui.mako.rs index c33f41a654e..2e3f52d12be 100644 --- a/components/style/properties/longhand/ui.mako.rs +++ b/components/style/properties/longhand/ui.mako.rs @@ -49,12 +49,10 @@ ${helpers.single_keyword("-moz-window-shadow", "none default menu tooltip sheet" spec="None (Nonstandard Firefox-only property)"> use std::fmt; use style_traits::ToCss; - use values::computed::ComputedValueAsSpecified; - pub mod computed_value { - #[derive(Clone, Copy, Debug, PartialEq)] #[cfg_attr(feature = "servo", derive(HeapSizeOf))] + #[derive(Clone, Copy, Debug, PartialEq, ToComputedValue)] pub struct T(pub bool); } @@ -76,8 +74,6 @@ ${helpers.single_keyword("-moz-window-shadow", "none default menu tooltip sheet" computed_value::T(false) } - impl ComputedValueAsSpecified for SpecifiedValue {} - pub fn parse<'i, 't>(_context: &ParserContext, input: &mut Parser<'i, 't>) -> Result> { match input.expect_integer()? {