Move '&&' to the end of the previous line.

Following https://github.com/servo/servo/issues/10692 this is just a
formating change to satisfy a new tidy requirement of not having '&&' at
the beginning of a line.
This commit is contained in:
Zbynek Winkler 2016-04-20 18:07:40 +02:00
parent 01b111c43e
commit 924d804583
11 changed files with 29 additions and 29 deletions

View file

@ -469,9 +469,9 @@ impl<'a> GlyphStore {
character: char,
data: &GlyphData) {
let glyph_is_compressible = is_simple_glyph_id(data.id) &&
is_simple_advance(data.advance)
&& data.offset == Point2D::zero()
&& data.cluster_start; // others are stored in detail buffer
is_simple_advance(data.advance) &&
data.offset == Point2D::zero() &&
data.cluster_start; // others are stored in detail buffer
debug_assert!(data.ligature_start); // can't compress ligature continuation glyphs.
debug_assert!(i < self.char_len());

View file

@ -412,8 +412,8 @@ impl Shaper {
let mut covered_byte_span = char_byte_span.clone();
// extend, clipping at end of text range.
while covered_byte_span.end() < byte_max
&& byte_to_glyph[covered_byte_span.end()] == NO_GLYPH {
while covered_byte_span.end() < byte_max &&
byte_to_glyph[covered_byte_span.end()] == NO_GLYPH {
let range = text.char_range_at(covered_byte_span.end());
drop(range.ch);
covered_byte_span.extend_to(range.next);