gfx: Binary search for the start position when iterating over the slices
in a text run.

This makes painting of text display items faster and matches what Gecko
does.
auto merge of #2584 : pcwalton/servo/binary-search, r=SimonSapin

in a text run.

This makes painting of text display items faster and matches what Gecko
does.

r? @SimonSapin