mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use euclid from crates.io
This commit is contained in:
parent
7355bf1061
commit
8cbfb3482c
104 changed files with 272 additions and 306 deletions
|
@ -24,9 +24,6 @@ git = "https://github.com/servo/rust-selectors"
|
|||
[dependencies.azure]
|
||||
git = "https://github.com/servo/rust-azure"
|
||||
|
||||
[dependencies.geom]
|
||||
git = "https://github.com/servo/rust-geom"
|
||||
|
||||
[dependencies.layers]
|
||||
git = "https://github.com/servo/rust-layers"
|
||||
|
||||
|
@ -45,3 +42,4 @@ lazy_static = "0.1.10"
|
|||
url = "*"
|
||||
string_cache = "0.1"
|
||||
string_cache_plugin = "0.1"
|
||||
euclid = "0.1"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//!
|
||||
//! This is based on `WebCore/platform/graphics/UnitBezier.h` in WebKit.
|
||||
|
||||
use geom::point::Point2D;
|
||||
use euclid::point::Point2D;
|
||||
|
||||
const NEWTON_METHOD_ITERATIONS: u8 = 8;
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use geom::length::Length;
|
||||
use geom::point::Point2D;
|
||||
use geom::rect::Rect;
|
||||
use geom::size::Size2D;
|
||||
use geom::num::Zero;
|
||||
use euclid::length::Length;
|
||||
use euclid::point::Point2D;
|
||||
use euclid::rect::Rect;
|
||||
use euclid::size::Size2D;
|
||||
use euclid::num::Zero;
|
||||
|
||||
use std::default::Default;
|
||||
use std::i32;
|
||||
|
@ -15,7 +15,7 @@ use std::ops::{Add, Sub, Neg, Mul, Div, Rem};
|
|||
|
||||
use rustc_serialize::{Encoder, Encodable};
|
||||
|
||||
// Units for use with geom::length and geom::scale_factor.
|
||||
// Units for use with euclid::length and euclid::scale_factor.
|
||||
|
||||
/// A normalized "pixel" at the default resolution for the display.
|
||||
///
|
||||
|
|
|
@ -24,7 +24,7 @@ extern crate azure;
|
|||
extern crate alloc;
|
||||
#[macro_use] extern crate bitflags;
|
||||
#[macro_use] extern crate cssparser;
|
||||
extern crate geom;
|
||||
extern crate euclid;
|
||||
extern crate getopts;
|
||||
extern crate layers;
|
||||
extern crate libc;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
//! Geometry in flow-relative space.
|
||||
|
||||
use geom::{Size2D, Point2D, SideOffsets2D, Rect};
|
||||
use geom::num::Zero;
|
||||
use euclid::{Size2D, Point2D, SideOffsets2D, Rect};
|
||||
use euclid::num::Zero;
|
||||
use std::cmp::{min, max};
|
||||
use std::fmt::{self, Debug, Formatter, Error};
|
||||
use std::ops::{Add, Sub};
|
||||
|
|
|
@ -13,7 +13,7 @@ use std::sync::Arc;
|
|||
|
||||
use azure::azure_hl::Color;
|
||||
use cursor::Cursor;
|
||||
use geom::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D, Matrix4};
|
||||
use euclid::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D, Matrix4};
|
||||
use geometry::Au;
|
||||
use range::Range;
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
use geometry::ScreenPx;
|
||||
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use geom::size::{Size2D, TypedSize2D};
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::{Size2D, TypedSize2D};
|
||||
use layers::geometry::DevicePixel;
|
||||
use getopts;
|
||||
use num_cpus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue