From 891789109ba9dd5e6a1371875322e0ff2832ca02 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 list-style-image property --- components/style/properties/longhand/list.mako.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/style/properties/longhand/list.mako.rs b/components/style/properties/longhand/list.mako.rs index 10d81fc4691..92167fdf91d 100644 --- a/components/style/properties/longhand/list.mako.rs +++ b/components/style/properties/longhand/list.mako.rs @@ -98,7 +98,6 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu <%helpers:longhand name="list-style-image" animation_value_type="discrete" boxed="${product == 'gecko'}" spec="https://drafts.csswg.org/css-lists/#propdef-list-style-image"> - use values::computed::ComputedValueAsSpecified; use values::specified::UrlOrNone; pub use self::computed_value::T as SpecifiedValue; @@ -108,11 +107,12 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu #[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[derive(Clone, Debug, PartialEq, ToCss)] pub struct T(pub UrlOrNone); + + // FIXME(nox): This is wrong, there are different types for specified + // and computed URLs in Servo. + trivial_to_computed_value!(T); } - - impl ComputedValueAsSpecified for SpecifiedValue {} - #[inline] pub fn get_initial_value() -> computed_value::T { computed_value::T(Either::Second(None_))