diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-06-11 20:51:07 -0700 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-06-13 12:28:21 -0700 |
commit | 5c408d2be92374b2dfce0686339e132ff4cf0e4c (patch) | |
tree | 1b8b3155610994fe31a749e997819252c5b47a56 /components/util/geometry.rs | |
parent | a9aa50683fec9ade7969e1ed29a9bc21d798f97e (diff) | |
download | servo-5c408d2be92374b2dfce0686339e132ff4cf0e4c.tar.gz servo-5c408d2be92374b2dfce0686339e132ff4cf0e4c.zip |
rust-geom API changes
https://github.com/servo/rust-geom/pull/81
Diffstat (limited to 'components/util/geometry.rs')
-rw-r--r-- | components/util/geometry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/geometry.rs b/components/util/geometry.rs index ae149c5162e..25fb284fcb3 100644 --- a/components/util/geometry.rs +++ b/components/util/geometry.rs @@ -277,7 +277,7 @@ pub fn rect_contains_point<T:PartialOrd + Add<T, Output=T>>(rect: Rect<T>, point /// A helper function to convert a rect of `f32` pixels to a rect of app units. pub fn f32_rect_to_au_rect(rect: Rect<f32>) -> Rect<Au> { - Rect(Point2D(Au::from_f32_px(rect.origin.x), Au::from_f32_px(rect.origin.y)), - Size2D(Au::from_f32_px(rect.size.width), Au::from_f32_px(rect.size.height))) + Rect::new(Point2D::new(Au::from_f32_px(rect.origin.x), Au::from_f32_px(rect.origin.y)), + Size2D::new(Au::from_f32_px(rect.size.width), Au::from_f32_px(rect.size.height))) } |