diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-20 10:43:49 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-20 10:48:47 +1000 |
commit | 076495db94b25cfc6a835c29dfadf840a54402a3 (patch) | |
tree | 76280d20fa69a4ae5f6c4dec42cd9863aaa1f1e0 /components/gfx/render_context.rs | |
parent | a983debaf16d788d500ce12262dc0b9b511b1e8e (diff) | |
download | servo-076495db94b25cfc6a835c29dfadf840a54402a3.tar.gz servo-076495db94b25cfc6a835c29dfadf840a54402a3.zip |
Use opts as a global, to avoid cloning and passing the struct all over the code.
Diffstat (limited to 'components/gfx/render_context.rs')
-rw-r--r-- | components/gfx/render_context.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/components/gfx/render_context.rs b/components/gfx/render_context.rs index 68449cdff19..252a0051f40 100644 --- a/components/gfx/render_context.rs +++ b/components/gfx/render_context.rs @@ -18,13 +18,11 @@ use libc::size_t; use png::{RGB8, RGBA8, K8, KA8}; use servo_net::image::base::Image; use servo_util::geometry::Au; -use servo_util::opts::Opts; use sync::Arc; pub struct RenderContext<'a> { pub draw_target: &'a DrawTarget, pub font_ctx: &'a mut Box<FontContext>, - pub opts: &'a Opts, /// The rectangle that this context encompasses in page coordinates. pub page_rect: Rect<f32>, /// The rectangle that this context encompasses in screen coordinates (pixels). |