Account for total glyph overflow in CachingWordShaper::width
CachingWordShaper::width works by splitting text runs along word
boundaries and incrementing the width & glyph bounding box of each
word separately. The function had a bug where the glyph bounding box
of all words was effectively at the origin. This patch translates the
glyph bounding box into the space of the current word before unioning.
This patch fixes the repaint bugs seen in
http://jsbin.com/mimujepiki
but only a unit test has been added to prove correctness.
BUG=
569833,
566285
Committed:
https://crrev.com/7d40658c384377727dff93c196d79a5f70df9a11
Cr-Commit-Position: refs/heads/master@{#365612}