Use glyph-ids for lookups of SVG font kerning-pairs

This CL eliminates the SVGTextMetrics::Glyph class in favor
of a simple Glyph (glyph-id). This shrinks SVGTextMetrics
objects by two pointers, and avoids the allocation of tiny
(often single-character/code-unit) strings.

It achieves this by replacing the linear kerning-pair lookup
with a table (HashMap) indexed by a key made up of the glyph id's of the two glyphs.

Review URL: https://codereview.chromium.org/181443002

git-svn-id: svn://svn.chromium.org/blink/trunk@168007 bbb929c8-8fbe-4397-9dbb-9b2b20218538
15 files changed
tree: 7dcda1b814674f698a5366234476604acbaebc6f
  1. third_party/