mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add frames into style system and update animation with frames functions.
This commit is contained in:
parent
18c72ac28d
commit
f1feddf52c
4 changed files with 57 additions and 5 deletions
|
@ -845,7 +845,8 @@ impl Parse for Integer {
|
|||
}
|
||||
|
||||
impl Integer {
|
||||
fn parse_with_minimum(context: &ParserContext, input: &mut Parser, min: i32) -> Result<Integer, ()> {
|
||||
#[allow(missing_docs)]
|
||||
pub fn parse_with_minimum(context: &ParserContext, input: &mut Parser, min: i32) -> Result<Integer, ()> {
|
||||
match parse_integer(context, input) {
|
||||
Ok(value) if value.value() >= min => Ok(value),
|
||||
_ => Err(()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue