Do not use CVAS for the -moz-force-broken-image-icon property

This commit is contained in:
Anthony Ramine 2017-09-11 16:35:11 +02:00
parent 4f36b30e34
commit b16c2572a9

View file

@ -49,12 +49,10 @@ ${helpers.single_keyword("-moz-window-shadow", "none default menu tooltip sheet"
spec="None (Nonstandard Firefox-only property)"> spec="None (Nonstandard Firefox-only property)">
use std::fmt; use std::fmt;
use style_traits::ToCss; use style_traits::ToCss;
use values::computed::ComputedValueAsSpecified;
pub mod computed_value { pub mod computed_value {
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[cfg_attr(feature = "servo", derive(HeapSizeOf))]
#[derive(Clone, Copy, Debug, PartialEq, ToComputedValue)]
pub struct T(pub bool); pub struct T(pub bool);
} }
@ -76,8 +74,6 @@ ${helpers.single_keyword("-moz-window-shadow", "none default menu tooltip sheet"
computed_value::T(false) computed_value::T(false)
} }
impl ComputedValueAsSpecified for SpecifiedValue {}
pub fn parse<'i, 't>(_context: &ParserContext, input: &mut Parser<'i, 't>) pub fn parse<'i, 't>(_context: &ParserContext, input: &mut Parser<'i, 't>)
-> Result<SpecifiedValue, ParseError<'i>> { -> Result<SpecifiedValue, ParseError<'i>> {
match input.expect_integer()? { match input.expect_integer()? {