mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Let Stylist compute and store viewport constraints when setting the device
This commit is contained in:
parent
f173504ded
commit
f1b6c7cc99
3 changed files with 24 additions and 13 deletions
|
@ -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>,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue