In Qt port we have GlyphBufferAdvance based on point type, not size type, however this code seems to work equally well with both point- and size-based GlyphBufferAdvance.
Created attachment 269740 [details] Patch
Created attachment 269741 [details] Patch
I think it's bad that these platform types propagate around masquerading as cross-platform types.
If you are interested in this kind of patches, could you help me with SVGGlyphToPathTranslator::extents (rendering/svg/SVGTextRunRenderingContext.cpp)? It has similar issue: mapSize is used to convert width of GlyphBufferAdvance, which is converted to FloatSize for this purpose.
Comment on attachment 269741 [details] Patch Clearing flags on attachment: 269741 Committed r195539: <http://trac.webkit.org/changeset/195539>
All reviewed patches have been landed. Closing bug.
Did not come up with anything more elegant than https://bugs.webkit.org/show_bug.cgi?id=153429