mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
456b05e9cf
commit
cc35d4fcce
5 changed files with 36 additions and 27 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue