diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2014-12-09 15:57:05 -0800 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2014-12-09 15:57:05 -0800 |
commit | 5d0d11c380461302cd32b6b202e742116be7c598 (patch) | |
tree | f076e6bce8b3912292128c8429a5ae24ff958d11 /components/layout/inline.rs | |
parent | 51850c7ab6129ab36fed99e45bdd4e45660348c6 (diff) | |
download | servo-5d0d11c380461302cd32b6b202e742116be7c598.tar.gz servo-5d0d11c380461302cd32b6b202e742116be7c598.zip |
Make all of LineBreaker private
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 96421f26cff..eb069c755bc 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -169,16 +169,16 @@ enum WrapMode { } struct LineBreaker { - pub floats: Floats, - pub new_fragments: Vec<Fragment>, - pub work_list: RingBuf<Fragment>, - pub pending_line: Line, - pub lines: Vec<Line>, - pub cur_b: Au, // Current position on the block direction + floats: Floats, + new_fragments: Vec<Fragment>, + work_list: RingBuf<Fragment>, + pending_line: Line, + lines: Vec<Line>, + cur_b: Au, // Current position on the block direction } impl LineBreaker { - pub fn new(float_context: Floats) -> LineBreaker { + fn new(float_context: Floats) -> LineBreaker { LineBreaker { new_fragments: Vec::new(), work_list: RingBuf::new(), @@ -193,7 +193,7 @@ impl LineBreaker { } } - pub fn floats(&mut self) -> Floats { + fn floats(&mut self) -> Floats { self.floats.clone() } @@ -215,7 +215,7 @@ impl LineBreaker { self.pending_line.green_zone = LogicalSize::zero(self.floats.writing_mode) } - pub fn scan_for_lines(&mut self, flow: &mut InlineFlow, layout_context: &LayoutContext) { + fn scan_for_lines(&mut self, flow: &mut InlineFlow, layout_context: &LayoutContext) { self.reset_scanner(); let mut old_fragments = mem::replace(&mut flow.fragments, InlineFragments::new()); |