diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-08-27 13:34:22 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-27 15:23:57 +0200 |
commit | 3a342484c4e35b7c9f10131dee8c39d2f62e9c6a (patch) | |
tree | 1e865bee61acc226f1128369560aff869fedd70f /Source/JavaScriptCore/API/JSStringRef.h | |
parent | a978cfb2e4c0fc3dd7551aaff16f1eee60ab1b1b (diff) | |
download | qtwebkit-3a342484c4e35b7c9f10131dee8c39d2f62e9c6a.tar.gz |
Font's fast code path doesn't handle partial runs correctly when kerning or ligatures are enabled
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:
Change-Id: I253195dc5fc07b4c9d0bb4947cd07d86f054a265
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/API/JSStringRef.h')
0 files changed, 0 insertions, 0 deletions