aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2019-06-04 15:21:58 -0700
committerJosh Matthews <josh@joshmatthews.net>2019-07-09 10:50:27 -0400
commit2f9c9cefdb74713593c47eec2002c5dd5416848b (patch)
tree9e0fef3243dad3fb8b97e7622e37026967688963 /components/layout_thread/lib.rs
parent357fc0332391bb6603b29453e644d9326807afbb (diff)
downloadservo-2f9c9cefdb74713593c47eec2002c5dd5416848b.tar.gz
servo-2f9c9cefdb74713593c47eec2002c5dd5416848b.zip
WebRender units are no longer reexported.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 3d192f6bbe6..bbd3c238b5b 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -833,7 +833,7 @@ impl LayoutThread {
let point = Point2D::new(-state.scroll_offset.x, -state.scroll_offset.y);
let mut txn = webrender_api::Transaction::new();
txn.scroll_node_with_id(
- webrender_api::LayoutPoint::from_untyped(&point),
+ webrender_api::units::LayoutPoint::from_untyped(&point),
state.scroll_id,
webrender_api::ScrollClamping::ToContentBounds,
);
@@ -1247,7 +1247,7 @@ impl LayoutThread {
epoch.next();
self.epoch.set(epoch);
- let viewport_size = webrender_api::LayoutSize::from_untyped(&viewport_size);
+ let viewport_size = webrender_api::units::LayoutSize::from_untyped(&viewport_size);
// Observe notifications about rendered frames if needed right before
// sending the display list to WebRender in order to set time related
@@ -1669,7 +1669,8 @@ impl LayoutThread {
// particular pipeline, so we need to tell WebRender about that.
flags.insert(webrender_api::HitTestFlags::POINT_RELATIVE_TO_PIPELINE_VIEWPORT);
- let client_point = webrender_api::WorldPoint::from_untyped(&client_point);
+ let client_point =
+ webrender_api::units::WorldPoint::from_untyped(&client_point);
let results = self.webrender_api.hit_test(
self.webrender_document,
Some(self.id.to_webrender()),