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/layout/traversal.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/layout/traversal.rs')
-rw-r--r-- | components/layout/traversal.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs index cb2f4a245fa..ac217c46185 100644 --- a/components/layout/traversal.rs +++ b/components/layout/traversal.rs @@ -16,6 +16,7 @@ use wrapper::{PostorderNodeMutTraversal, ThreadSafeLayoutNode, UnsafeLayoutNode} use wrapper::{PreorderDomTraversal, PostorderDomTraversal}; use servo_util::bloom::BloomFilter; +use servo_util::opts; use servo_util::tid::tid; use style::TNode; @@ -204,7 +205,7 @@ impl<'a> PostorderDomTraversal for ConstructFlows<'a> { let tnode = ThreadSafeLayoutNode::new(&node); // Always re-construct if incremental layout is turned off. - if !self.layout_context.shared.opts.incremental_layout { + if !opts::get().incremental_layout { unsafe { node.set_dirty_descendants(true); } |