-
allan.jensen@digia.com authored
https://bugs.webkit.org/show_bug.cgi?id=100050 Reviewed by Darin Adler. Renamed m_characterIndex to m_characterIndexOfGlyph and gave it an inline size of 10, which covers around 66% of all cases. The rest of the cases are now preallocated to the upper limit which is length of the original TextRun. * platform/graphics/FontFastPath.cpp: (WebCore::Font::getGlyphsAndAdvancesForSimpleText): (WebCore::Font::selectionRectForSimpleText): (WebCore::Font::offsetForPositionForSimpleText): * platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::WidthIterator): (WebCore::WidthIterator::advanceInternal): * platform/graphics/WidthIterator.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5fb0af8e