Get rid of some of our custom additional methods in favor of clonable keywords.

Now that I'm pretty convinced we can auto-generate these and make them fast, we can
ditch the additional complexity.
This commit is contained in:
Bobby Holley 2016-04-19 16:41:38 -07:00
parent 456b05e9cf
commit cc35d4fcce
5 changed files with 36 additions and 27 deletions

View file

@ -9,12 +9,12 @@
<% data.new_style_struct("Outline",
inherited=False,
gecko_ffi_name="nsStyleOutline",
additional_methods=[Method("outline_is_none_or_hidden_and_has_nonzero_width", "bool")]) %>
additional_methods=[Method("outline_has_nonzero_width", "bool")]) %>
// TODO(pcwalton): `invert`
${helpers.predefined_type("outline-color", "CSSColor", "::cssparser::Color::CurrentColor")}
<%helpers:longhand name="outline-style">
<%helpers:longhand name="outline-style" need_clone="True">
pub use values::specified::BorderStyle as SpecifiedValue;
pub fn get_initial_value() -> SpecifiedValue { SpecifiedValue::none }
pub mod computed_value {