Try to fix assertion failures on ports that do not support kerning and ligatures...
authorDan Bernstein <mitz@webkit.org>
Mon, 15 Oct 2012 22:52:35 +0000 (22:52 +0000)
committerDan Bernstein <mitz@webkit.org>
Mon, 15 Oct 2012 22:52:35 +0000 (22:52 +0000)
commit82dc7279fdcf4b749baa9d03dd568efa5603ab8a
tree6ec54c55b2584045ad98c91923811dfd781464e4
parent8145c43259335a9a3e5e331ae1edff8beed351c1
Try to fix assertion failures on ports that do not support kerning and ligatures on the fast
code path after r131365.

* platform/graphics/WidthIterator.cpp:
(WebCore::applyFontTransforms): Changed the early return condition to not bother with 1-glyph
sequences.
* platform/graphics/WidthIterator.h:
(WebCore::WidthIterator::shouldApplyFontTransforms): Changed to return false if the run is
shorter than 2 characters.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/WidthIterator.cpp
Source/WebCore/platform/graphics/WidthIterator.h