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/parallel.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/parallel.rs')
-rw-r--r-- | components/layout/parallel.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/parallel.rs b/components/layout/parallel.rs index df3b340810c..42008396cab 100644 --- a/components/layout/parallel.rs +++ b/components/layout/parallel.rs @@ -19,6 +19,7 @@ use wrapper::{layout_node_to_unsafe_layout_node, layout_node_from_unsafe_layout_ use wrapper::{PostorderNodeMutTraversal, UnsafeLayoutNode}; use wrapper::{PreorderDomTraversal, PostorderDomTraversal}; +use servo_util::opts; use servo_util::time::{TimeProfilerChan, profile}; use servo_util::time; use servo_util::workqueue::{WorkQueue, WorkUnit, WorkerProxy}; @@ -427,7 +428,7 @@ pub fn traverse_flow_tree_preorder(root: &mut FlowRef, time_profiler_chan: TimeProfilerChan, shared_layout_context: &SharedLayoutContext, queue: &mut WorkQueue<*const SharedLayoutContext,UnsafeFlow>) { - if shared_layout_context.opts.bubble_inline_sizes_separately { + if opts::get().bubble_inline_sizes_separately { let layout_context = LayoutContext::new(shared_layout_context); let bubble_inline_sizes = BubbleISizes { layout_context: &layout_context }; root.traverse_postorder(&bubble_inline_sizes); |