mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #10469 - mbrubeck:layout-misc, r=pcwalton
Some minor layout cleanups * Prevent unnecessary copying in `strip_leading_whitespace_if_necessary` * Remove unused argument to `adjust_clipping_region_for_children` (silences a compiler warning) r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10469) <!-- Reviewable:end -->
This commit is contained in:
commit
bd2051d06a
4 changed files with 8 additions and 9 deletions
|
@ -2347,7 +2347,10 @@ impl Fragment {
|
|||
modified = true;
|
||||
continue
|
||||
}
|
||||
new_text_string.push_str(&unscanned_text_fragment_info.text[i..]);
|
||||
// Finished processing leading control chars and whitespace.
|
||||
if modified {
|
||||
new_text_string.push_str(&unscanned_text_fragment_info.text[i..]);
|
||||
}
|
||||
break
|
||||
}
|
||||
if modified {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue