mirror of
https://github.com/servo/servo.git
synced 2025-08-28 00:28:20 +01:00
style: Update to euclid 0.20.
Differential Revision: https://phabricator.services.mozilla.com/D38530
This commit is contained in:
parent
66eae2fc81
commit
239f2da9d9
16 changed files with 39 additions and 38 deletions
|
@ -17,7 +17,7 @@ gecko = []
|
|||
app_units = "0.7"
|
||||
cssparser = "0.25"
|
||||
bitflags = "1.0"
|
||||
euclid = "0.19"
|
||||
euclid = "0.20"
|
||||
lazy_static = "1"
|
||||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = "0.1"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use crate::{CSSPixel, CssWriter, ParseError, PinchZoomFactor, ToCss};
|
||||
use cssparser::Parser;
|
||||
use euclid::TypedSize2D;
|
||||
use euclid::Size2D;
|
||||
use std::fmt::{self, Write};
|
||||
|
||||
define_css_keyword_enum! {
|
||||
|
@ -33,7 +33,7 @@ pub struct ViewportConstraints {
|
|||
/// Width and height:
|
||||
/// * https://drafts.csswg.org/css-device-adapt/#width-desc
|
||||
/// * https://drafts.csswg.org/css-device-adapt/#height-desc
|
||||
pub size: TypedSize2D<f32, CSSPixel>,
|
||||
pub size: Size2D<f32, CSSPixel>,
|
||||
/// <https://drafts.csswg.org/css-device-adapt/#zoom-desc>
|
||||
pub initial_zoom: PinchZoomFactor,
|
||||
/// <https://drafts.csswg.org/css-device-adapt/#min-max-width-desc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue