Avoid calling AtomicString::lower() in makeFontGlyphsCacheKey
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Sep 2013 04:46:59 +0000 (04:46 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Sep 2013 04:46:59 +0000 (04:46 +0000)
commit0b584da4cd520607bed8cad66d39e56a67bb77c7
tree569a5aa0517ccf8a0b5f67260af599491d893468
parent2d6fc78cec86a33d073b1e56161447b76feacc20
Avoid calling AtomicString::lower() in makeFontGlyphsCacheKey
https://bugs.webkit.org/show_bug.cgi?id=121656

Reviewed by Darin Adler.

Instead of lower casing AtomicStrings, store the strings as is and use the case folding
hash and case insensitive compare to determine equality.

* platform/graphics/Font.cpp:
(WebCore::operator==):
(WebCore::makeFontGlyphsCacheKey):
(WebCore::computeFontGlyphsCacheHash):

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