mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Move #[css(iterable)] on fields rather than variants
This commit is contained in:
parent
f5393cef8d
commit
85950a801f
10 changed files with 44 additions and 51 deletions
|
@ -176,9 +176,9 @@ impl UrlMatchingFunction {
|
|||
/// The `@document` rule's condition is written as a comma-separated list of
|
||||
/// URL matching functions, and the condition evaluates to true whenever any
|
||||
/// one of those functions evaluates to true.
|
||||
#[css(comma, iterable)]
|
||||
#[css(comma)]
|
||||
#[derive(Clone, Debug, ToCss)]
|
||||
pub struct DocumentCondition(Vec<UrlMatchingFunction>);
|
||||
pub struct DocumentCondition(#[css(iterable)] Vec<UrlMatchingFunction>);
|
||||
|
||||
impl DocumentCondition {
|
||||
/// Parse a document condition.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue