mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
19 lines
573 B
Rust
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>
|
|
}
|