mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use opts as a global, to avoid cloning and passing the struct all over the code.
This commit is contained in:
parent
a983debaf1
commit
076495db94
20 changed files with 108 additions and 132 deletions
|
@ -15,7 +15,6 @@ use script_traits::UntrustedNodeAddress;
|
|||
use servo_msg::constellation_msg::ConstellationChan;
|
||||
use servo_net::local_image_cache::LocalImageCache;
|
||||
use servo_util::geometry::Au;
|
||||
use servo_util::opts::Opts;
|
||||
use sync::{Arc, Mutex};
|
||||
use std::mem;
|
||||
use style::Stylist;
|
||||
|
@ -75,9 +74,6 @@ pub struct SharedLayoutContext {
|
|||
/// The URL.
|
||||
pub url: Url,
|
||||
|
||||
/// The command line options.
|
||||
pub opts: Opts,
|
||||
|
||||
/// The dirty rectangle, used during display list building.
|
||||
pub dirty: Rect<Au>,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue