Do not compare the first glyph to itself in Font::drawGlyphBuffer()
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Oct 2011 10:00:09 +0000 (10:00 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Oct 2011 10:00:09 +0000 (10:00 +0000)
commitb99caa9e6f88edb441abe0e279b369bb9b7d35cf
tree27c369f0d247ae48d578878d37f5d54dbac6dae2
parentf916c00d5f7c723037fe720b5209e798cd5c90c7
Do not compare the first glyph to itself in Font::drawGlyphBuffer()
https://bugs.webkit.org/show_bug.cgi?id=69715

Reviewed by Andreas Kling.

When looking for glyphs with similar properties, we should
skip the first one since the comparison of fontData
and offset will always fail.

This is covered by the existing tests.

* platform/graphics/FontFastPath.cpp:
(WebCore::Font::drawGlyphBuffer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/FontFastPath.cpp