2020: paint background-color

This commit is contained in:
Simon Sapin 2019-10-15 17:52:51 +02:00
parent 4e8eeda976
commit cfc3ffcd54
8 changed files with 143 additions and 24 deletions

View file

@ -332,3 +332,12 @@ impl From<physical::Rect<Length>> for Rect<CSSPixel> {
}
}
}
impl From<physical::Rect<Length>> for webrender_api::units::LayoutRect {
fn from(r: physical::Rect<Length>) -> Self {
Rect {
origin: Point::new(r.top_left.x.px(), r.top_left.y.px()),
size: Size::new(r.size.x.px(), r.size.y.px()),
}
}
}