mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Appease tidy.
This commit is contained in:
parent
81f40a57e4
commit
e3e826d4fb
3 changed files with 9 additions and 6 deletions
|
@ -408,7 +408,7 @@ impl ToCss for System {
|
|||
}
|
||||
|
||||
/// <https://drafts.csswg.org/css-counter-styles/#typedef-symbol>
|
||||
#[derive(Clone, Debug, Eq, PartialEq, ToComputedValue, ToCss, ToShmem, MallocSizeOf)]
|
||||
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq, ToComputedValue, ToCss, ToShmem)]
|
||||
pub enum Symbol {
|
||||
/// <string>
|
||||
String(crate::OwnedStr),
|
||||
|
@ -461,7 +461,7 @@ impl Parse for Negative {
|
|||
}
|
||||
|
||||
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-range>
|
||||
#[derive(Clone, Debug, ToShmem, ToCss)]
|
||||
#[derive(Clone, Debug, ToCss, ToShmem)]
|
||||
pub struct CounterRange {
|
||||
/// The start of the range.
|
||||
pub start: CounterBound,
|
||||
|
@ -472,7 +472,7 @@ pub struct CounterRange {
|
|||
/// <https://drafts.csswg.org/css-counter-styles/#counter-style-range>
|
||||
///
|
||||
/// Empty represents 'auto'
|
||||
#[derive(Clone, Debug, ToShmem, ToCss)]
|
||||
#[derive(Clone, Debug, ToCss, ToShmem)]
|
||||
#[css(comma)]
|
||||
pub struct CounterRanges(#[css(iterable, if_empty = "auto")] pub crate::OwnedSlice<CounterRange>);
|
||||
|
||||
|
@ -553,7 +553,7 @@ impl Parse for Fallback {
|
|||
}
|
||||
|
||||
/// <https://drafts.csswg.org/css-counter-styles/#descdef-counter-style-symbols>
|
||||
#[derive(Clone, Debug, Eq, PartialEq, MallocSizeOf, ToComputedValue, ToCss, ToShmem)]
|
||||
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq, ToComputedValue, ToCss, ToShmem)]
|
||||
pub struct Symbols(#[css(iterable)] pub crate::OwnedSlice<Symbol>);
|
||||
|
||||
impl Parse for Symbols {
|
||||
|
|
|
@ -136,7 +136,10 @@
|
|||
% endif
|
||||
use crate::values::computed::ComputedVecIter;
|
||||
|
||||
<% is_shared_list = allow_empty and allow_empty != "NotInitial" and data.longhands_by_name[name].style_struct.inherited %>
|
||||
<%
|
||||
is_shared_list = allow_empty and allow_empty != "NotInitial" and \
|
||||
data.longhands_by_name[name].style_struct.inherited
|
||||
%>
|
||||
|
||||
// FIXME(emilio): Add an OwnedNonEmptySlice type, and figure out
|
||||
// something for transition-name, which is the only remaining user
|
||||
|
|
|
@ -13,7 +13,7 @@ use std::ops::{Deref, DerefMut};
|
|||
/// A struct that basically replaces a Box<str>, but with a defined layout,
|
||||
/// suitable for FFI.
|
||||
#[repr(C)]
|
||||
#[derive(Default, Clone, PartialEq, Eq, MallocSizeOf, ToShmem)]
|
||||
#[derive(Clone, Default, Eq, MallocSizeOf, PartialEq, ToShmem)]
|
||||
pub struct OwnedStr(OwnedSlice<u8>);
|
||||
|
||||
impl fmt::Debug for OwnedStr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue