mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Add Circle to basic_shape.rs
This commit is contained in:
parent
44e33bcdc5
commit
77f345476f
3 changed files with 88 additions and 4 deletions
|
@ -49,7 +49,7 @@ pub enum PositionComponent {
|
|||
}
|
||||
|
||||
impl Position {
|
||||
fn new(first: PositionComponent, second: PositionComponent)
|
||||
pub fn new(first: PositionComponent, second: PositionComponent)
|
||||
-> Result<Position, ()> {
|
||||
let (horiz, vert) = match (category(first), category(second)) {
|
||||
// Don't allow two vertical keywords or two horizontal keywords.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue