mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Stop using u/i suffixes in layout.
This commit is contained in:
parent
7fabf6071e
commit
a65c80231a
4 changed files with 5 additions and 6 deletions
|
@ -1601,7 +1601,7 @@ impl Fragment {
|
|||
let inline_end_fragment_text =
|
||||
text_fragment_info.run.text.slice_chars(inline_end_range.begin().to_usize(),
|
||||
inline_end_range.end().to_usize());
|
||||
let mut leading_whitespace_character_count = 0i;
|
||||
let mut leading_whitespace_character_count = 0;
|
||||
for ch in inline_end_fragment_text.chars() {
|
||||
if ch.is_whitespace() {
|
||||
leading_whitespace_character_count += 1
|
||||
|
@ -2128,7 +2128,7 @@ pub enum CoordinateSystem {
|
|||
fn strip_trailing_whitespace(text_run: &TextRun, range: &mut Range<CharIndex>) -> bool {
|
||||
// FIXME(pcwalton): Is there a more clever (i.e. faster) way to do this?
|
||||
let text = text_run.text.slice_chars(range.begin().to_usize(), range.end().to_usize());
|
||||
let mut trailing_whitespace_character_count = 0i;
|
||||
let mut trailing_whitespace_character_count = 0;
|
||||
for ch in text.chars().rev() {
|
||||
if ch.is_whitespace() {
|
||||
trailing_whitespace_character_count += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue