mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Merge pull request #3160 from mbrubeck/old-layout-comments
Remove obsolete TODO comments
This commit is contained in:
commit
c1ec0b11e9
1 changed files with 0 additions and 5 deletions
|
@ -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<String> = 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue