aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main/layout/box.rs')
-rw-r--r--src/components/main/layout/box.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/main/layout/box.rs b/src/components/main/layout/box.rs
index 38f422a1dff..658b52726c8 100644
--- a/src/components/main/layout/box.rs
+++ b/src/components/main/layout/box.rs
@@ -38,7 +38,7 @@ use script::dom::node::{AbstractNode, LayoutView};
use servo_net::image::holder::ImageHolder;
use servo_net::local_image_cache::LocalImageCache;
use servo_util::range::*;
-use extra::net::url::Url;
+use extra::url::Url;
/// Render boxes (`struct RenderBox`) are the leaves of the layout tree. They cannot position
/// themselves. In general, render boxes do not have a simple correspondence with CSS boxes as in
@@ -433,7 +433,7 @@ impl RenderBox {
ImageRenderBoxClass(image_box) => {
// TODO: Consult the CSS `width` property as well as margins and borders.
// TODO: If the image isn't available, consult `width`.
- Au::from_px(image_box.image.get_size().get_or_default(Size2D(0, 0)).width)
+ Au::from_px(image_box.image.get_size().unwrap_or_default(Size2D(0, 0)).width)
}
TextRenderBoxClass(text_box) => {
@@ -454,7 +454,7 @@ impl RenderBox {
GenericRenderBoxClass(*) => Au(0),
ImageRenderBoxClass(image_box) => {
- Au::from_px(image_box.image.get_size().get_or_default(Size2D(0, 0)).width)
+ Au::from_px(image_box.image.get_size().unwrap_or_default(Size2D(0, 0)).width)
}
TextRenderBoxClass(text_box) => {