mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update some code that's feature-gated under core.
This commit is contained in:
parent
29a36adbe7
commit
ba87666cdb
33 changed files with 104 additions and 107 deletions
|
@ -306,7 +306,7 @@ impl Shaper {
|
|||
}
|
||||
|
||||
debug!("(glyph idx) -> (text byte offset)");
|
||||
for i in range(0, glyph_data.len()) {
|
||||
for i in 0..glyph_data.len() {
|
||||
// loc refers to a *byte* offset within the utf8 string.
|
||||
let loc = glyph_data.byte_offset_of_glyph(i);
|
||||
if loc < byte_max {
|
||||
|
@ -481,7 +481,7 @@ impl Shaper {
|
|||
}
|
||||
|
||||
// now add the detailed glyph entry.
|
||||
glyphs.add_glyphs_for_char_index(char_idx, datas.as_slice());
|
||||
glyphs.add_glyphs_for_char_index(char_idx, &datas);
|
||||
|
||||
// set the other chars, who have no glyphs
|
||||
let mut i = covered_byte_span.begin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue