mirror of
https://github.com/servo/servo.git
synced 2025-06-18 05:14:28 +00:00
Address review comments
This commit is contained in:
parent
97eb5671bb
commit
c65d51f812
2 changed files with 0 additions and 4 deletions
|
@ -8,12 +8,10 @@ use geom::rect::Rect;
|
||||||
use gfx::font_context::FontContext;
|
use gfx::font_context::FontContext;
|
||||||
use gfx::geometry::Au;
|
use gfx::geometry::Au;
|
||||||
use servo_net::local_image_cache::LocalImageCache;
|
use servo_net::local_image_cache::LocalImageCache;
|
||||||
use std::net::url::Url;
|
|
||||||
|
|
||||||
/// Data needed by the layout task.
|
/// Data needed by the layout task.
|
||||||
pub struct LayoutContext {
|
pub struct LayoutContext {
|
||||||
font_ctx: @mut FontContext,
|
font_ctx: @mut FontContext,
|
||||||
image_cache: @mut LocalImageCache,
|
image_cache: @mut LocalImageCache,
|
||||||
doc_url: Url,
|
|
||||||
screen_size: Rect<Au>
|
screen_size: Rect<Au>
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,12 +116,10 @@ impl Layout {
|
||||||
let image_cache = self.local_image_cache;
|
let image_cache = self.local_image_cache;
|
||||||
let font_ctx = self.font_ctx;
|
let font_ctx = self.font_ctx;
|
||||||
let screen_size = self.screen_size.unwrap();
|
let screen_size = self.screen_size.unwrap();
|
||||||
let doc_url = self.doc_url.clone();
|
|
||||||
|
|
||||||
LayoutContext {
|
LayoutContext {
|
||||||
image_cache: image_cache,
|
image_cache: image_cache,
|
||||||
font_ctx: font_ctx,
|
font_ctx: font_ctx,
|
||||||
doc_url: doc_url.unwrap(),
|
|
||||||
screen_size: Rect(Point2D(Au(0), Au(0)), screen_size),
|
screen_size: Rect(Point2D(Au(0), Au(0)), screen_size),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue