servo/src/components/main/layout/context.rs
2013-12-11 11:42:14 +09:00

19 lines
573 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Data needed by the layout task.
use geom::rect::Rect;
use gfx::font_context::FontContext;
use servo_util::geometry::Au;
use servo_net::local_image_cache::LocalImageCache;
use extra::arc::MutexArc;
/// Data needed by the layout task.
pub struct LayoutContext {
font_ctx: ~FontContext,
image_cache: MutexArc<LocalImageCache>,
screen_size: Rect<Au>
}