mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add InsetRect, move BorderRadius to basic_shape.rs
This commit is contained in:
parent
93b130f3f7
commit
2580c1dc6e
6 changed files with 316 additions and 43 deletions
|
@ -77,7 +77,7 @@ pub mod shorthands {
|
|||
use parser::ParserContext;
|
||||
use values::specified;
|
||||
|
||||
fn parse_four_sides<F, T>(input: &mut Parser, parse_one: F) -> Result<(T, T, T, T), ()>
|
||||
pub fn parse_four_sides<F, T>(input: &mut Parser, parse_one: F) -> Result<(T, T, T, T), ()>
|
||||
where F: Fn(&mut Parser) -> Result<T, ()>, F: Copy, T: Clone {
|
||||
// zero or more than four values is invalid.
|
||||
// one value sets them all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue