diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-05-23 16:49:01 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-05-23 17:06:41 +0100 |
commit | 9dd16e41ab5f63dedd6862df93814f3b87746460 (patch) | |
tree | 733c53cead4059479d49952ad05eb12e9a23ee45 /src/components/main/layout/construct.rs | |
parent | c753f3ee05a25b2bb756c3b0c3131eac7ad58f1a (diff) | |
download | servo-9dd16e41ab5f63dedd6862df93814f3b87746460.tar.gz servo-9dd16e41ab5f63dedd6862df93814f3b87746460.zip |
Make ComputedStyle fields private and add getters.
This isolates layout code from upcoming refactoring in properties.rs.mako.
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 0aa2acb1e94..902a86d288a 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -843,11 +843,11 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> { None => { // Pseudo-element. let style = node.style(); - (display::inline, style.Box.get().float, style.Box.get().position) + (display::inline, style.get_box().float, style.get_box().position) } Some(ElementNodeTypeId(_)) => { let style = node.style(); - (style.Box.get().display, style.Box.get().float, style.Box.get().position) + (style.get_box().display, style.get_box().float, style.get_box().position) } Some(TextNodeTypeId) => (display::inline, float::none, position::static_), Some(CommentNodeTypeId) | @@ -999,7 +999,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { // // If you implement other values for this property, you will almost certainly // want to update this check. - match self.style().InheritedText.get().white_space { + match self.style().get_inheritedtext().white_space { white_space::normal => true, _ => false, } |