Add InsetRect, move BorderRadius to basic_shape.rs

This commit is contained in:
Manish Goregaokar 2016-07-29 18:40:22 +05:30
parent 93b130f3f7
commit 2580c1dc6e
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
6 changed files with 316 additions and 43 deletions

View file

@ -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