aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_thread')
-rw-r--r--components/layout_thread/Cargo.toml2
-rw-r--r--components/layout_thread/lib.rs18
2 files changed, 10 insertions, 10 deletions
diff --git a/components/layout_thread/Cargo.toml b/components/layout_thread/Cargo.toml
index a06cf20e28f..a1e4953c126 100644
--- a/components/layout_thread/Cargo.toml
+++ b/components/layout_thread/Cargo.toml
@@ -12,7 +12,7 @@ path = "lib.rs"
[dependencies]
app_units = "0.2.5"
azure = {git = "https://github.com/servo/rust-azure", features = ["plugins"]}
-euclid = "0.7.1"
+euclid = "0.8.2"
fnv = "1.0"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index da5d2ec5a75..16b3b9e5731 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -113,7 +113,7 @@ use style::stylesheets::{Stylesheet, CSSRuleIteratorExt};
use style::timer::Timer;
use style::workqueue::WorkQueue;
use url::Url;
-use util::geometry::MAX_RECT;
+use util::geometry::max_rect;
use util::ipc::OptionalIpcSender;
use util::opts;
use util::prefs::PREFS;
@@ -617,7 +617,7 @@ impl LayoutThread {
let reflow_info = Reflow {
goal: ReflowGoal::ForDisplay,
- page_clip_rect: MAX_RECT,
+ page_clip_rect: max_rect(),
};
let mut layout_context = self.build_shared_layout_context(&*rw_data,
false,
@@ -1076,8 +1076,8 @@ impl LayoutThread {
let initial_viewport = data.window_size.initial_viewport;
let old_viewport_size = self.viewport_size;
- let current_screen_size = Size2D::new(Au::from_f32_px(initial_viewport.width.get()),
- Au::from_f32_px(initial_viewport.height.get()));
+ let current_screen_size = Size2D::new(Au::from_f32_px(initial_viewport.width),
+ Au::from_f32_px(initial_viewport.height));
// Calculate the actual viewport as per DEVICE-ADAPT § 6
let device = Device::new(MediaType::Screen, initial_viewport);
@@ -1089,8 +1089,8 @@ impl LayoutThread {
debug!("Viewport constraints: {:?}", constraints);
// other rules are evaluated against the actual viewport
- Size2D::new(Au::from_f32_px(constraints.size.width.get()),
- Au::from_f32_px(constraints.size.height.get()))
+ Size2D::new(Au::from_f32_px(constraints.size.width),
+ Au::from_f32_px(constraints.size.height))
}
None => current_screen_size,
};
@@ -1303,7 +1303,7 @@ impl LayoutThread {
// Regenerate the display lists.
let reflow_info = Reflow {
goal: ReflowGoal::ForDisplay,
- page_clip_rect: MAX_RECT,
+ page_clip_rect: max_rect(),
};
let mut layout_context = self.build_shared_layout_context(&*rw_data,
@@ -1347,7 +1347,7 @@ impl LayoutThread {
fn tick_animations(&mut self, rw_data: &mut LayoutThreadData) {
let reflow_info = Reflow {
goal: ReflowGoal::ForDisplay,
- page_clip_rect: MAX_RECT,
+ page_clip_rect: max_rect(),
};
let mut layout_context = self.build_shared_layout_context(&*rw_data,
@@ -1378,7 +1378,7 @@ impl LayoutThread {
let reflow_info = Reflow {
goal: ReflowGoal::ForDisplay,
- page_clip_rect: MAX_RECT,
+ page_clip_rect: max_rect(),
};
let mut layout_context = self.build_shared_layout_context(&*rw_data,