Do not use CVAS for gecko::SpecifiedUrl

This commit is contained in:
Anthony Ramine 2017-09-11 16:47:01 +02:00
parent b16c2572a9
commit 3fb52a0ef9
2 changed files with 1 additions and 6 deletions

View file

@ -30,6 +30,7 @@ pub struct SpecifiedUrl {
/// a property with this specified url value.
pub image_value: Option<RefPtr<ImageValue>>,
}
trivial_to_computed_value!(SpecifiedUrl);
impl SpecifiedUrl {
/// Try to parse a URL from a string value that is a valid CSS token for a

View file

@ -83,8 +83,6 @@ pub mod url {
use cssparser::Parser;
use parser::{Parse, ParserContext};
use style_traits::ParseError;
#[cfg(feature = "gecko")]
use values::computed::ComputedValueAsSpecified;
#[cfg(feature = "servo")]
pub use ::servo::url::*;
@ -99,10 +97,6 @@ impl Parse for SpecifiedUrl {
}
impl Eq for SpecifiedUrl {}
#[cfg(feature = "gecko")]
impl ComputedValueAsSpecified for SpecifiedUrl {}
}
/// Parse an `<integer>` value, handling `calc()` correctly.