style: Update to euclid 0.20.

Differential Revision: https://phabricator.services.mozilla.com/D38530
This commit is contained in:
Nicolas Silva 2019-07-18 22:54:16 +02:00 committed by Emilio Cobos Álvarez
parent 66eae2fc81
commit 239f2da9d9
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
16 changed files with 39 additions and 38 deletions

View file

@ -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"

View file

@ -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>