diff options
Diffstat (limited to 'src/components/main/layout/context.rs')
-rw-r--r-- | src/components/main/layout/context.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/main/layout/context.rs b/src/components/main/layout/context.rs new file mode 100644 index 00000000000..8646b9faabc --- /dev/null +++ b/src/components/main/layout/context.rs @@ -0,0 +1,19 @@ +/* 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 gfx::geometry::Au; +use servo_net::local_image_cache::LocalImageCache; +use std::net::url::Url; + +/// Data needed by the layout task. +pub struct LayoutContext { + font_ctx: @mut FontContext, + image_cache: @mut LocalImageCache, + doc_url: Url, + screen_size: Rect<Au> +} |