Let Stylist compute and store viewport constraints when setting the device

This commit is contained in:
Till Schneidereit 2015-10-05 17:18:17 +02:00
parent f173504ded
commit f1b6c7cc99
3 changed files with 24 additions and 13 deletions

View file

@ -20,7 +20,7 @@ define_css_keyword_enum!(Orientation:
"landscape" => Landscape);
#[derive(Debug, PartialEq, Deserialize, Serialize)]
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct ViewportConstraints {
pub size: TypedSize2D<ViewportPx, f32>,