From 0b215f85b40e4d3189f905d69e7a579ac6d7d3f6 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 26 Aug 2014 12:40:17 -0700 Subject: [PATCH] Remove obsolete TODO comments --- src/components/layout/text.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/layout/text.rs b/src/components/layout/text.rs index 8aa162fd624..4aad9d187b0 100644 --- a/src/components/layout/text.rs +++ b/src/components/layout/text.rs @@ -123,7 +123,6 @@ impl TextRunScanner { let font_style = old_fragment.font_style(); - // TODO(#115): Use the actual CSS `white-space` property of the relevant style. let compression = match old_fragment.white_space() { white_space::normal => CompressWhitespaceNewline, white_space::pre => CompressNone, @@ -168,7 +167,6 @@ impl TextRunScanner { let font_style = in_fragment.font_style(); let fontgroup = font_context.get_layout_font_group_for_style(&font_style); - // TODO(#115): Use the actual CSS `white-space` property of the relevant style. let compression = match in_fragment.white_space() { white_space::normal => CompressWhitespaceNewline, white_space::pre => CompressNone, @@ -179,9 +177,6 @@ impl TextRunScanner { // First, transform/compress text of all the nodes. let mut last_whitespace_in_clump = new_whitespace; let transformed_strs: Vec = Vec::from_fn(self.clump.length().to_uint(), |i| { - // TODO(#113): We should be passing the compression context between calls to - // `transform_text`, so that fragments starting and/or ending with whitespace can - // be compressed correctly with respect to the text run. let idx = CharIndex(i as int) + self.clump.begin(); let in_fragment = match in_fragments[idx.to_uint()].specific { UnscannedTextFragment(ref text_fragment_info) => &text_fragment_info.text,