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

@ -25,7 +25,7 @@ use crate::values::specified::{NonNegativeLengthPercentageOrAuto, ViewportPercen
use app_units::Au;
use cssparser::CowRcStr;
use cssparser::{parse_important, AtRuleParser, DeclarationListParser, DeclarationParser, Parser};
use euclid::TypedSize2D;
use euclid::Size2D;
use selectors::parser::SelectorParseErrorKind;
use std::borrow::Cow;
use std::cell::RefCell;
@ -832,7 +832,7 @@ impl MaybeNew for ViewportConstraints {
});
Some(ViewportConstraints {
size: TypedSize2D::new(width.to_f32_px(), height.to_f32_px()),
size: Size2D::new(width.to_f32_px(), height.to_f32_px()),
// TODO: compute a zoom factor for 'auto' as suggested by DEVICE-ADAPT § 10.
initial_zoom: PinchZoomFactor::new(initial_zoom.unwrap_or(1.)),