Mozilla Bug 669175 - Slow rendering of text sometimes in this case,
using direction: rtl
}
-static void
+static inline void
reverse_range (hb_buffer_t *buffer,
unsigned int start,
unsigned int end)
{
unsigned int i, j;
+ if (start == end - 1)
+ return;
+
for (i = start, j = end - 1; i < j; i++, j--) {
hb_glyph_info_t t;
}
if (buffer->pos) {
- for (i = 0, j = end - 1; i < j; i++, j--) {
+ for (i = start, j = end - 1; i < j; i++, j--) {
hb_glyph_position_t t;
t = buffer->pos[i];