diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-12-15 16:00:40 -0800 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-12-16 10:57:27 -0800 |
commit | 648ce1e44e65b194184b713e8b47695d5ff17921 (patch) | |
tree | 94a20912b289dd1799cc017720f6daf83ed6d121 /components/layout/flex.rs | |
parent | 1b2daae453e9276977059fd51c9b733e6400f35c (diff) | |
download | servo-648ce1e44e65b194184b713e8b47695d5ff17921.tar.gz servo-648ce1e44e65b194184b713e8b47695d5ff17921.zip |
Make the DomTraversalContext own the SharedStyleContext and share it immutably across the traversal.
This allows us to get rid of a bunch of lifetimes and simplify a lot of code. It
also lets us get rid of that nasty lifetime transmute, which is awesome.
The situation with thread-local contexts is still suboptimal, but we fix that in
subsequent patches.
Diffstat (limited to 'components/layout/flex.rs')
-rw-r--r-- | components/layout/flex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/flex.rs b/components/layout/flex.rs index 7b169674363..7b8d694494c 100644 --- a/components/layout/flex.rs +++ b/components/layout/flex.rs @@ -26,7 +26,7 @@ use std::ops::Range; use std::sync::Arc; use style::computed_values::{align_content, align_self, flex_direction, flex_wrap, justify_content}; use style::computed_values::border_collapse; -use style::context::{SharedStyleContext, StyleContext}; +use style::context::SharedStyleContext; use style::logical_geometry::{Direction, LogicalSize}; use style::properties::ServoComputedValues; use style::servo::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW}; |