diff options
Diffstat (limited to 'Source/WTF/wtf/text/StringStatics.cpp')
-rw-r--r-- | Source/WTF/wtf/text/StringStatics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WTF/wtf/text/StringStatics.cpp b/Source/WTF/wtf/text/StringStatics.cpp index 1a80f6d48..e749728fc 100644 --- a/Source/WTF/wtf/text/StringStatics.cpp +++ b/Source/WTF/wtf/text/StringStatics.cpp @@ -59,13 +59,14 @@ WTF_EXPORTDATA DEFINE_GLOBAL(AtomicString, commentAtom, "#comment") WTF_EXPORTDATA DEFINE_GLOBAL(AtomicString, starAtom, "*") WTF_EXPORTDATA DEFINE_GLOBAL(AtomicString, xmlAtom, "xml") WTF_EXPORTDATA DEFINE_GLOBAL(AtomicString, xmlnsAtom, "xmlns") +WTF_EXPORTDATA DEFINE_GLOBAL(AtomicString, xlinkAtom, "xlink") NEVER_INLINE unsigned StringImpl::hashSlowCase() const { if (is8Bit()) - setHash(StringHasher::computeHash(m_data8, m_length)); + setHash(StringHasher::computeHashAndMaskTop8Bits(m_data8, m_length)); else - setHash(StringHasher::computeHash(m_data16, m_length)); + setHash(StringHasher::computeHashAndMaskTop8Bits(m_data16, m_length)); return existingHash(); } @@ -84,6 +85,7 @@ void AtomicString::init() new (NotNull, (void*)&starAtom) AtomicString("*"); new (NotNull, (void*)&xmlAtom) AtomicString("xml"); new (NotNull, (void*)&xmlnsAtom) AtomicString("xmlns"); + new (NotNull, (void*)&xlinkAtom) AtomicString("xlink"); initialized = true; } |