Include glyph overflow in SVG text bounding boxes
Glyph overflow is the area that extends past the layout bounds of a
glyph. Both the paint invalidation bounding boxes and the returned
value from SVGTextElement.getBBox() did not include the glyph
overflow. This can be seen in repaint bugs around compositor tile
boundaries if text is animated, or by looking at the result of
getBBox().
This patch stores the glyph overflow when computing text metrics and
adds this overflow only to the bounding box so layout values are
unaffected. With this patch we now match the behavior of Gecko.
BUG=
566285
Committed:
https://crrev.com/50972884330c51464b56f9082d4da49330e9f6b3
Cr-Commit-Position: refs/heads/master@{#366291}