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
|
@ -38,9 +38,9 @@ use canvas_traits::{CanvasGradientStop, LinearGradientStyle, RadialGradientStyle
|
|||
use canvas_traits::{LineCapStyle, LineJoinStyle, CompositionOrBlending, RepetitionStyle};
|
||||
use cssparser::RGBA;
|
||||
use encoding::types::EncodingRef;
|
||||
use geom::matrix2d::Matrix2D;
|
||||
use geom::rect::Rect;
|
||||
use geom::size::Size2D;
|
||||
use euclid::matrix2d::Matrix2D;
|
||||
use euclid::rect::Rect;
|
||||
use euclid::size::Size2D;
|
||||
use html5ever::tree_builder::QuirksMode;
|
||||
use hyper::header::Headers;
|
||||
use hyper::method::Method;
|
||||
|
|
|
@ -8,7 +8,7 @@ use dom::bindings::global::GlobalRef;
|
|||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
use dom::canvasgradient::ToFillOrStrokeStyle;
|
||||
use geom::size::Size2D;
|
||||
use euclid::size::Size2D;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#canvaspattern
|
||||
#[dom_struct]
|
||||
|
|
|
@ -24,10 +24,10 @@ use dom::node::{window_from_node, NodeHelpers, NodeDamage};
|
|||
|
||||
use cssparser::Color as CSSColor;
|
||||
use cssparser::{Parser, RGBA};
|
||||
use geom::matrix2d::Matrix2D;
|
||||
use geom::point::Point2D;
|
||||
use geom::rect::Rect;
|
||||
use geom::size::Size2D;
|
||||
use euclid::matrix2d::Matrix2D;
|
||||
use euclid::point::Point2D;
|
||||
use euclid::rect::Rect;
|
||||
use euclid::size::Size2D;
|
||||
|
||||
use canvas_traits::{CanvasMsg, Canvas2dMsg, CanvasCommonMsg};
|
||||
use canvas_traits::{FillOrStrokeStyle, LinearGradientStyle, RadialGradientStyle, RepetitionStyle};
|
||||
|
|
|
@ -82,7 +82,7 @@ use util::opts;
|
|||
use util::str::{DOMString, split_html_space_chars};
|
||||
use layout_interface::{ReflowGoal, ReflowQueryType};
|
||||
|
||||
use geom::point::Point2D;
|
||||
use euclid::point::Point2D;
|
||||
use html5ever::tree_builder::{QuirksMode, NoQuirks, LimitedQuirks, Quirks};
|
||||
use layout_interface::{LayoutChan, Msg};
|
||||
use string_cache::{Atom, QualName};
|
||||
|
|
|
@ -31,7 +31,7 @@ use js::jsapi::{JSContext};
|
|||
use js::jsval::JSVal;
|
||||
use offscreen_gl_context::GLContextAttributes;
|
||||
|
||||
use geom::size::Size2D;
|
||||
use euclid::size::Size2D;
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::default::Default;
|
||||
|
|
|
@ -7,7 +7,7 @@ use dom::bindings::codegen::Bindings::ImageDataBinding::ImageDataMethods;
|
|||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
use geom::size::Size2D;
|
||||
use euclid::size::Size2D;
|
||||
use js::jsapi::{JSContext, JSObject};
|
||||
use js::jsfriendapi::bindgen::{JS_NewUint8ClampedArray, JS_GetUint8ClampedArrayData};
|
||||
use libc::uint8_t;
|
||||
|
|
|
@ -46,7 +46,7 @@ use dom::processinginstruction::{ProcessingInstruction, ProcessingInstructionHel
|
|||
use dom::text::Text;
|
||||
use dom::virtualmethods::{VirtualMethods, vtable_for};
|
||||
use dom::window::{Window, WindowHelpers};
|
||||
use geom::rect::Rect;
|
||||
use euclid::rect::Rect;
|
||||
use layout_interface::{LayoutChan, Msg};
|
||||
use devtools_traits::NodeInfo;
|
||||
use parse::html::parse_html_fragment;
|
||||
|
|
|
@ -19,7 +19,7 @@ use dom::webgltexture::{WebGLTexture, WebGLTextureHelpers};
|
|||
use dom::webglshader::{WebGLShader, WebGLShaderHelpers};
|
||||
use dom::webglprogram::{WebGLProgram, WebGLProgramHelpers};
|
||||
use dom::webgluniformlocation::{WebGLUniformLocation, WebGLUniformLocationHelpers};
|
||||
use geom::size::Size2D;
|
||||
use euclid::size::Size2D;
|
||||
use js::jsapi::{JSContext, JSObject};
|
||||
use js::jsfriendapi::bindgen::{JS_GetFloat32ArrayData, JS_GetObjectAsArrayBufferView};
|
||||
use js::jsval::{JSVal, NullValue, Int32Value};
|
||||
|
|
|
@ -48,7 +48,7 @@ use util::geometry::{self, Au, MAX_RECT};
|
|||
use util::opts;
|
||||
use util::str::{DOMString,HTML_SPACE_CHARACTERS};
|
||||
|
||||
use geom::{Point2D, Rect, Size2D};
|
||||
use euclid::{Point2D, Rect, Size2D};
|
||||
use js::jsapi::JS_EvaluateUCScript;
|
||||
use js::jsapi::JSContext;
|
||||
use js::jsapi::{JS_GC, JS_GetRuntime};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue