mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Format remaining files
This commit is contained in:
parent
bf47f90da6
commit
cb07debcb6
252 changed files with 5944 additions and 3744 deletions
|
@ -226,9 +226,9 @@ impl<'a> DetailedGlyphStore {
|
|||
/* TODO: don't actually assert this until asserts are compiled
|
||||
in/out based on severity, debug/release, etc. This assertion
|
||||
would wreck the complexity of the lookup.
|
||||
|
||||
|
||||
See Rust Issue #3647, #2228, #3627 for related information.
|
||||
|
||||
|
||||
do self.detail_lookup.borrow |arr| {
|
||||
assert !arr.contains(entry)
|
||||
}
|
||||
|
@ -541,7 +541,8 @@ impl<'a> GlyphStore {
|
|||
data_for_glyphs[i].advance,
|
||||
data_for_glyphs[i].offset,
|
||||
)
|
||||
}).collect();
|
||||
})
|
||||
.collect();
|
||||
|
||||
self.has_detailed_glyphs = true;
|
||||
self.detail_store
|
||||
|
|
|
@ -380,7 +380,8 @@ impl<'a> TextRun {
|
|||
);
|
||||
remaining -= slice_advance;
|
||||
slice_index
|
||||
}).sum()
|
||||
})
|
||||
.sum()
|
||||
}
|
||||
|
||||
/// Returns an iterator that will iterate over all slices of glyphs that represent natural
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue