diff options
-rw-r--r-- | src/components/layout/text.rs | 12 | ||||
-rw-r--r-- | src/components/layout/wrapper.rs | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/components/layout/text.rs b/src/components/layout/text.rs index 569580995c8..70b2cc7a3cc 100644 --- a/src/components/layout/text.rs +++ b/src/components/layout/text.rs @@ -87,12 +87,12 @@ impl TextRunScanner { /// /// FIXME(#2267, pcwalton): Stop cloning fragments. Instead we will need to replace each /// `in_fragment` with some smaller stub. - pub fn flush_clump_to_list(&mut self, - font_context: &mut FontContext, - in_fragments: &[Fragment], - out_fragments: &mut Vec<Fragment>, - last_whitespace: bool) - -> bool { + fn flush_clump_to_list(&mut self, + font_context: &mut FontContext, + in_fragments: &[Fragment], + out_fragments: &mut Vec<Fragment>, + last_whitespace: bool) + -> bool { assert!(self.clump.length() > CharIndex(0)); debug!("TextRunScanner: flushing fragments in range={}", self.clump); diff --git a/src/components/layout/wrapper.rs b/src/components/layout/wrapper.rs index e5d450d93f7..9616eedcb3a 100644 --- a/src/components/layout/wrapper.rs +++ b/src/components/layout/wrapper.rs @@ -536,7 +536,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> { /// Creates a new `ThreadSafeLayoutNode` for the same `LayoutNode` /// with a different pseudo-element type. - pub fn with_pseudo(&self, pseudo: PseudoElementType) -> ThreadSafeLayoutNode<'ln> { + fn with_pseudo(&self, pseudo: PseudoElementType) -> ThreadSafeLayoutNode<'ln> { ThreadSafeLayoutNode { node: self.node.clone(), pseudo: pseudo, |