mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Don't require mask-mode to follow mask-image
This commit is contained in:
parent
cd63f1b158
commit
920b0ee6ca
2 changed files with 5 additions and 9 deletions
|
@ -49,10 +49,6 @@
|
|||
if let Ok(value) = input.try(|input| mask_image::single_value
|
||||
::parse(context, input)) {
|
||||
image = Some(value);
|
||||
|
||||
// Parse mask mode, if applicable.
|
||||
mode = input.try(|input| mask_mode::single_value::parse(context, input)).ok();
|
||||
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +66,7 @@
|
|||
continue
|
||||
}
|
||||
}
|
||||
% for name in "repeat origin clip composite".split():
|
||||
% for name in "repeat origin clip composite mode".split():
|
||||
if ${name}.is_none() {
|
||||
if let Ok(value) = input.try(|input| mask_${name}::single_value
|
||||
::parse(context, input)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue