<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[195911] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/195911">195911</a></dd>
<dt>Author</dt> <dd>darin@apple.com</dd>
<dt>Date</dt> <dd>2016-01-30 13:53:47 -0800 (Sat, 30 Jan 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Replace CaseFoldingHash with ASCIICaseInsensitiveHash
https://bugs.webkit.org/show_bug.cgi?id=153639
Reviewed by Filip Pizlo.
Source/WebCore:
* Modules/webdatabase/DatabaseAuthorizer.h: Use ASCIICaseInsensitiveHash
for whitelisted functions. Function names are all ASCII.
* accessibility/AccessibilityObject.cpp: Use ASCIICaseInsensitiveHash
for ARIA roles. ARIA roles are all ASCII.
* crypto/CryptoAlgorithmRegistry.h: Use ASCIICaseInsensitiveHash for
crypto algorithm names. Algorithm names are all ASCII.
* css/CSSFontSelector.cpp:
(WebCore::registerLocalFontFacesForFamily): Use ASCIICaseInsensitiveHash
for font faces. Face names should use ASCII case insensitive matching;
there is no need for non-ASCII case folding.
* css/CSSFontSelector.h: Ditto.
* dom/DOMImplementation.cpp: Use ASCIICaseInsensitiveHash for the
FeatureSet. The features are all ASCII.
* dom/Document.h: Use ASCIICaseInsensitiveHash for the access key
map. Access keys are all ASCII.
* dom/ScriptElement.cpp:
(WebCore::isLegacySupportedJavaScriptLanguage): Use ASCIICaseInsensitiveHash
for the language set. These strings are all ASCII.
* editing/EditorCommand.cpp: Use ASCIICaseInsensitiveHash for editor
command names. These names are all ASCII.
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::parametersForPlugin): Use ASCIICaseInsensitiveHash
for parameter names. These names are all ASCII.
* html/InputType.cpp: Use ASCIICaseInsensitiveHash for the input types.
The input types are all ASCII.
* loader/CrossOriginAccessControl.h: Use ASCIICaseInsensitiveHash for
HTTP header field names. These names are all ASCII.
* loader/CrossOriginPreflightResultCache.h: Ditto.
* loader/archive/ArchiveFactory.cpp: Use ASCIICaseInsensitiveHash for
MIME types. MIME types are all ASCII.
* platform/MIMETypeRegistry.cpp:
(WebCore::initializeSupportedImageMIMETypes): Ditto.
* platform/SchemeRegistry.h: Use ASCIICaseInsensitiveHas for URL schemes.
URL schemes are all ASCII.
* platform/URL.cpp: Ditto.
* platform/graphics/FontCache.cpp: Reworked FontPlatformDataCacheKey struct:
Made it a conventional struct with non-prefixed data members names. Removed
the "==" operator since it was appropriate for hash table lookup but wasn't
a true equality operator. Tightened the implementations of the constructors.
(WebCore::FontPlatformDataCacheKeyHash::hash): Use ASCIICaseInsensitiveHash.
(WebCore::FontPlatformDataCacheKeyHash::equal): Do the equality check here,
not using the == operator. And use equalIgnoringASCIICase.
(WebCore::FontPlatformDataCacheKeyTraits::isEmptyValue): Added this entire
traits struct so we check empty values in a more efficient way.
(WebCore::FontCache::getCachedFontPlatformData): Added comments and tweaked
style in this function.
* platform/graphics/FontCascade.cpp:
(WebCore::keysMatch): Rename from operator== since this operation is not
equality. Changed to equalIgnoringASCIICase and did a little streamlining.
(WebCore::makeFontCascadeCacheKey): Use reserveInitialCapacity for slightly
better memory use.
(WebCore::computeFontCascadeCacheHash): Use IntegerHasher to make computing
a hash more efficient by eliminating the overhead of building a vector and
even possible heap allocation and deallocation.
(WebCore::retrieveOrAddCachedFonts): Use keysMatch instead of ==.
* platform/graphics/cocoa/FontCacheCoreText.cpp: Use ASCIICaseInsensitiveHash
for font family names. These names should use ASCII case insensitive matching;
there is no need for non-ASCII case folding.
* platform/network/HTTPHeaderMap.h: Use ASCIICaseInsensitiveHash for
HTTP header field names. These names are all ASCII.
* rendering/style/RenderStyle.cpp:
(WebCore::computeFontHash): Use IntegerHasher to avoid allocating memory just
to compute a hash. Use ASCIICaseInsensitiveHash.
Source/WebKit/win:
* WebCoreStatistics.cpp:
(WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names.
These names are all ASCII.
* WebURLResponse.cpp:
(WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header
field names. These names are all ASCII.
Source/WebKit2:
* UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm: Use ASCIICaseInsensitiveHash
for MIME types. MIME types are all ASCII.
* UIProcess/Plugins/PlugInAutoStartProvider.h: Use ASCIICaseInsensitiveHash for
origins. Origin strings should use ASCII case insensitive matching and should not
fold non-ASCII case.
* WebProcess/WebPage/WebPage.h: Use ASCIICaseInsensitiveHash for MIME types.
MIME types are all ASCII.
* WebProcess/WebProcess.cpp:
(WebKit::addCaseFoldedCharacters): Use ASCIICaseInsensitiveHash to hash plug-in
origin strings. (See rationale above.)
(WebKit::hashForPlugInOrigin): Updated comment.
Source/WTF:
* wtf/text/StringHash.h: Renamed CaseFoldingHash to ASCIICaseInsensitiveHash.
(WTF::ASCIICaseInsensitiveHash::foldCase): Use toASCIILower.
(WTF::ASCIICaseInsensitiveHash::equal): Use equalIgnoringASCIICase.
Also added some assertions.
* wtf/text/StringImpl.cpp: Made the latin1CaseFoldTable private to this file,
since it's no longer needed by CaseFoldingHash. Moved it up before its first use.
(WTF::equalCompatibilityCaseless): Fixed typo in the name of this function.
(WTF::equalCompatibiltyCaselessNonNull): Deleted.
* wtf/text/StringImpl.h: Removed declarations of latin1CaseFoldTable and
equalCompatibiltyCaselessNonNull
Tools:
* Scripts/do-webcore-rename: Use script to do this rename.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtftextStringHashh">trunk/Source/WTF/wtf/text/StringHash.h</a></li>
<li><a href="#trunkSourceWTFwtftextStringImplcpp">trunk/Source/WTF/wtf/text/StringImpl.cpp</a></li>
<li><a href="#trunkSourceWTFwtftextStringImplh">trunk/Source/WTF/wtf/text/StringImpl.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseDatabaseAuthorizerh">trunk/Source/WebCore/Modules/webdatabase/DatabaseAuthorizer.h</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoCryptoAlgorithmRegistryh">trunk/Source/WebCore/crypto/CryptoAlgorithmRegistry.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSFontSelectorcpp">trunk/Source/WebCore/css/CSSFontSelector.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSFontSelectorh">trunk/Source/WebCore/css/CSSFontSelector.h</a></li>
<li><a href="#trunkSourceWebCoredomDOMImplementationcpp">trunk/Source/WebCore/dom/DOMImplementation.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumenth">trunk/Source/WebCore/dom/Document.h</a></li>
<li><a href="#trunkSourceWebCoredomScriptElementcpp">trunk/Source/WebCore/dom/ScriptElement.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorCommandcpp">trunk/Source/WebCore/editing/EditorCommand.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLObjectElementcpp">trunk/Source/WebCore/html/HTMLObjectElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlInputTypecpp">trunk/Source/WebCore/html/InputType.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderCrossOriginAccessControlh">trunk/Source/WebCore/loader/CrossOriginAccessControl.h</a></li>
<li><a href="#trunkSourceWebCoreloaderCrossOriginPreflightResultCacheh">trunk/Source/WebCore/loader/CrossOriginPreflightResultCache.h</a></li>
<li><a href="#trunkSourceWebCoreloaderarchiveArchiveFactorycpp">trunk/Source/WebCore/loader/archive/ArchiveFactory.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformMIMETypeRegistrycpp">trunk/Source/WebCore/platform/MIMETypeRegistry.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformSchemeRegistryh">trunk/Source/WebCore/platform/SchemeRegistry.h</a></li>
<li><a href="#trunkSourceWebCoreplatformURLcpp">trunk/Source/WebCore/platform/URL.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsFontCachecpp">trunk/Source/WebCore/platform/graphics/FontCache.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsFontCascadecpp">trunk/Source/WebCore/platform/graphics/FontCascade.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscocoaFontCacheCoreTextcpp">trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkHTTPHeaderMaph">trunk/Source/WebCore/platform/network/HTTPHeaderMap.h</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleRenderStylecpp">trunk/Source/WebCore/rendering/style/RenderStyle.cpp</a></li>
<li><a href="#trunkSourceWebKitwinChangeLog">trunk/Source/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitwinWebCoreStatisticscpp">trunk/Source/WebKit/win/WebCoreStatistics.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebURLResponsecpp">trunk/Source/WebKit/win/WebURLResponse.cpp</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaWKWebViewContentProviderRegistrymm">trunk/Source/WebKit2/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProviderh">trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPageh">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebProcesscpp">trunk/Source/WebKit2/WebProcess/WebProcess.cpp</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsScriptsdowebcorerename">trunk/Tools/Scripts/do-webcore-rename</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WTF/ChangeLog        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2016-01-30 Darin Adler <darin@apple.com>
+
+ Replace CaseFoldingHash with ASCIICaseInsensitiveHash
+ https://bugs.webkit.org/show_bug.cgi?id=153639
+
+ Reviewed by Filip Pizlo.
+
+ * wtf/text/StringHash.h: Renamed CaseFoldingHash to ASCIICaseInsensitiveHash.
+ (WTF::ASCIICaseInsensitiveHash::foldCase): Use toASCIILower.
+ (WTF::ASCIICaseInsensitiveHash::equal): Use equalIgnoringASCIICase.
+ Also added some assertions.
+
+ * wtf/text/StringImpl.cpp: Made the latin1CaseFoldTable private to this file,
+ since it's no longer needed by CaseFoldingHash. Moved it up before its first use.
+ (WTF::equalCompatibilityCaseless): Fixed typo in the name of this function.
+ (WTF::equalCompatibiltyCaselessNonNull): Deleted.
+
+ * wtf/text/StringImpl.h: Removed declarations of latin1CaseFoldTable and
+ equalCompatibiltyCaselessNonNull
+
</ins><span class="cx"> 2016-01-29 Ada Chan <adachan@apple.com>
</span><span class="cx">
</span><span class="cx"> Enable VIDEO_PRESENTATION_MODE only in Debug and Release builds on Mac
</span></span></pre></div>
<a id="trunkSourceWTFwtftextStringHashh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/text/StringHash.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/text/StringHash.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WTF/wtf/text/StringHash.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2006, 2007, 2008, 2012, 2013 Apple Inc. All rights reserved
</del><ins>+ * Copyright (C) 2006-2008, 2012-2013, 2016 Apple Inc. All rights reserved
</ins><span class="cx"> * Copyright (C) Research In Motion Limited 2009. All rights reserved.
</span><span class="cx"> *
</span><span class="cx"> * This library is free software; you can redistribute it and/or
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> return value.isNull();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- // The hash() functions on StringHash and CaseFoldingHash do not support
</del><ins>+ // The hash() functions on StringHash and ASCIICaseInsensitiveHash do not support
</ins><span class="cx"> // null strings. get(), contains(), and add() on HashMap<String,..., StringHash>
</span><span class="cx"> // cause a null-pointer dereference when passed null strings.
</span><span class="cx">
</span><span class="lines">@@ -71,14 +71,11 @@
</span><span class="cx"> static const bool safeToCompareToEmptyOrDeleted = false;
</span><span class="cx"> };
</span><span class="cx">
</span><del>- class CaseFoldingHash {
</del><ins>+ class ASCIICaseInsensitiveHash {
</ins><span class="cx"> public:
</span><span class="cx"> template<typename T> static inline UChar foldCase(T character)
</span><span class="cx"> {
</span><del>- if (std::is_same<T, LChar>::value)
- return StringImpl::latin1CaseFoldTable[character];
-
- return u_foldCase(character, U_FOLD_CASE_DEFAULT);
</del><ins>+ return toASCIILower(character);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static unsigned hash(const UChar* data, unsigned length)
</span><span class="lines">@@ -105,17 +102,23 @@
</span><span class="cx">
</span><span class="cx"> static inline unsigned hash(const char* data, unsigned length)
</span><span class="cx"> {
</span><del>- return CaseFoldingHash::hash(reinterpret_cast<const LChar*>(data), length);
</del><ins>+ return hash(reinterpret_cast<const LChar*>(data), length);
</ins><span class="cx"> }
</span><span class="cx">
</span><ins>+ static inline bool equal(const StringImpl& a, const StringImpl& b)
+ {
+ return equalIgnoringASCIICase(a, b);
+ }
</ins><span class="cx"> static inline bool equal(const StringImpl* a, const StringImpl* b)
</span><span class="cx"> {
</span><del>- return equalCompatibiltyCaselessNonNull(a, b);
</del><ins>+ ASSERT(a);
+ ASSERT(b);
+ return equal(*a, *b);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static unsigned hash(const RefPtr<StringImpl>& key)
</span><span class="cx"> {
</span><del>- return hash(*key);
</del><ins>+ return hash(key.get());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool equal(const RefPtr<StringImpl>& a, const RefPtr<StringImpl>& b)
</span><span class="lines">@@ -167,8 +170,8 @@
</span><span class="cx">
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+using WTF::ASCIICaseInsensitiveHash;
</ins><span class="cx"> using WTF::AlreadyHashed;
</span><del>-using WTF::CaseFoldingHash;
</del><span class="cx"> using WTF::StringHash;
</span><span class="cx">
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWTFwtftextStringImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/text/StringImpl.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/text/StringImpl.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WTF/wtf/text/StringImpl.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -950,30 +950,50 @@
</span><span class="cx"> return charactersToFloat(characters16(), m_length, ok);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline bool equalCompatibiltyCaseless(const LChar* a, const LChar* b, unsigned length)
</del><ins>+// Table is based on ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt
+static const UChar latin1CaseFoldTable[256] = {
+ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f,
+ 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f,
+ 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f,
+ 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d, 0x003e, 0x003f,
+ 0x0040, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
+ 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a, 0x005b, 0x005c, 0x005d, 0x005e, 0x005f,
+ 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
+ 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a, 0x007b, 0x007c, 0x007d, 0x007e, 0x007f,
+ 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087, 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
+ 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097, 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
+ 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
+ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x03bc, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
+ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
+ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00d7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00df,
+ 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
+ 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
+};
+
+static inline bool equalCompatibilityCaseless(const LChar* a, const LChar* b, unsigned length)
</ins><span class="cx"> {
</span><span class="cx"> while (length--) {
</span><del>- if (StringImpl::latin1CaseFoldTable[*a++] != StringImpl::latin1CaseFoldTable[*b++])
</del><ins>+ if (latin1CaseFoldTable[*a++] != latin1CaseFoldTable[*b++])
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline bool equalCompatibiltyCaseless(const UChar* a, const LChar* b, unsigned length)
</del><ins>+static inline bool equalCompatibilityCaseless(const UChar* a, const LChar* b, unsigned length)
</ins><span class="cx"> {
</span><span class="cx"> while (length--) {
</span><del>- if (u_foldCase(*a++, U_FOLD_CASE_DEFAULT) != StringImpl::latin1CaseFoldTable[*b++])
</del><ins>+ if (u_foldCase(*a++, U_FOLD_CASE_DEFAULT) != latin1CaseFoldTable[*b++])
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline bool equalCompatibiltyCaseless(const LChar* a, const UChar* b, unsigned length)
</del><ins>+static inline bool equalCompatibilityCaseless(const LChar* a, const UChar* b, unsigned length)
</ins><span class="cx"> {
</span><del>- return equalCompatibiltyCaseless(b, a, length);
</del><ins>+ return equalCompatibilityCaseless(b, a, length);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static inline bool equalCompatibiltyCaseless(const UChar* a, const UChar* b, unsigned length)
</del><ins>+static inline bool equalCompatibilityCaseless(const UChar* a, const UChar* b, unsigned length)
</ins><span class="cx"> {
</span><span class="cx"> return !u_memcasecmp(a, b, length, U_FOLD_CASE_DEFAULT);
</span><span class="cx"> }
</span><span class="lines">@@ -1082,7 +1102,7 @@
</span><span class="cx"> const LChar* searchCharacters = characters8() + index;
</span><span class="cx">
</span><span class="cx"> unsigned i = 0;
</span><del>- while (!equalCompatibiltyCaseless(searchCharacters + i, matchString, matchLength)) {
</del><ins>+ while (!equalCompatibilityCaseless(searchCharacters + i, matchString, matchLength)) {
</ins><span class="cx"> if (i == delta)
</span><span class="cx"> return notFound;
</span><span class="cx"> ++i;
</span><span class="lines">@@ -1093,7 +1113,7 @@
</span><span class="cx"> const UChar* searchCharacters = characters16() + index;
</span><span class="cx">
</span><span class="cx"> unsigned i = 0;
</span><del>- while (!equalCompatibiltyCaseless(searchCharacters + i, matchString, matchLength)) {
</del><ins>+ while (!equalCompatibilityCaseless(searchCharacters + i, matchString, matchLength)) {
</ins><span class="cx"> if (i == delta)
</span><span class="cx"> return notFound;
</span><span class="cx"> ++i;
</span><span class="lines">@@ -1157,7 +1177,7 @@
</span><span class="cx">
</span><span class="cx"> unsigned i = 0;
</span><span class="cx"> // keep looping until we match
</span><del>- while (!equalCompatibiltyCaseless(searchCharacters + i, matchCharacters, matchLength)) {
</del><ins>+ while (!equalCompatibilityCaseless(searchCharacters + i, matchCharacters, matchLength)) {
</ins><span class="cx"> if (i == delta)
</span><span class="cx"> return notFound;
</span><span class="cx"> ++i;
</span><span class="lines">@@ -1298,7 +1318,7 @@
</span><span class="cx"> unsigned delta = std::min(index, length - matchLength);
</span><span class="cx">
</span><span class="cx"> // keep looping until we match
</span><del>- while (!equalCompatibiltyCaseless(searchCharacters + delta, matchCharacters, matchLength)) {
</del><ins>+ while (!equalCompatibilityCaseless(searchCharacters + delta, matchCharacters, matchLength)) {
</ins><span class="cx"> if (!delta)
</span><span class="cx"> return notFound;
</span><span class="cx"> --delta;
</span><span class="lines">@@ -1344,8 +1364,8 @@
</span><span class="cx"> return equal(stringImpl->characters16() + startOffset, reinterpret_cast<const LChar*>(matchString), matchLength);
</span><span class="cx"> }
</span><span class="cx"> if (stringImpl->is8Bit())
</span><del>- return equalCompatibiltyCaseless(stringImpl->characters8() + startOffset, reinterpret_cast<const LChar*>(matchString), matchLength);
- return equalCompatibiltyCaseless(stringImpl->characters16() + startOffset, reinterpret_cast<const LChar*>(matchString), matchLength);
</del><ins>+ return equalCompatibilityCaseless(stringImpl->characters8() + startOffset, reinterpret_cast<const LChar*>(matchString), matchLength);
+ return equalCompatibilityCaseless(stringImpl->characters16() + startOffset, reinterpret_cast<const LChar*>(matchString), matchLength);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ALWAYS_INLINE static bool equalInner(const StringImpl& stringImpl, unsigned startOffset, const StringImpl& matchString)
</span><span class="lines">@@ -1918,30 +1938,6 @@
</span><span class="cx"> return equalCommon(a, b);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool equalCompatibiltyCaselessNonNull(const StringImpl* a, const StringImpl* b)
-{
- ASSERT(a);
- ASSERT(b);
- if (a == b)
- return true;
-
- unsigned length = a->length();
- if (length != b->length())
- return false;
-
- if (a->is8Bit()) {
- if (b->is8Bit())
- return equalCompatibiltyCaseless(a->characters8(), b->characters8(), length);
-
- return equalCompatibiltyCaseless(b->characters16(), a->characters8(), length);
- }
-
- if (b->is8Bit())
- return equalCompatibiltyCaseless(a->characters16(), b->characters8(), length);
-
- return equalCompatibiltyCaseless(a->characters16(), b->characters16(), length);
-}
-
</del><span class="cx"> bool equalIgnoringNullity(StringImpl* a, StringImpl* b)
</span><span class="cx"> {
</span><span class="cx"> if (!a && b && !b->length())
</span><span class="lines">@@ -2141,26 +2137,6 @@
</span><span class="cx"> return utf8ForRange(0, length(), mode);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-// Table is based on ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt
-const UChar StringImpl::latin1CaseFoldTable[256] = {
- 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f,
- 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f,
- 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f,
- 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d, 0x003e, 0x003f,
- 0x0040, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
- 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a, 0x005b, 0x005c, 0x005d, 0x005e, 0x005f,
- 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
- 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a, 0x007b, 0x007c, 0x007d, 0x007e, 0x007f,
- 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087, 0x0088, 0x0089, 0x008a, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f,
- 0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097, 0x0098, 0x0099, 0x009a, 0x009b, 0x009c, 0x009d, 0x009e, 0x009f,
- 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af,
- 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x03bc, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
- 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
- 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00d7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00df,
- 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
- 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
-};
-
</del><span class="cx"> bool equalIgnoringNullity(const UChar* a, size_t aLength, StringImpl* b)
</span><span class="cx"> {
</span><span class="cx"> if (!b)
</span></span></pre></div>
<a id="trunkSourceWTFwtftextStringImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/text/StringImpl.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/text/StringImpl.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WTF/wtf/text/StringImpl.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -762,8 +762,6 @@
</span><span class="cx"> ALWAYS_INLINE static StringStats& stringStats() { return m_stringStats; }
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- WTF_EXPORT_STRING_API static const UChar latin1CaseFoldTable[256];
-
</del><span class="cx"> Ref<StringImpl> extractFoldedStringInSymbol()
</span><span class="cx"> {
</span><span class="cx"> ASSERT(isSymbol());
</span><span class="lines">@@ -946,9 +944,6 @@
</span><span class="cx"> inline bool equal(const char* a, StringImpl* b) { return equal(b, reinterpret_cast<const LChar*>(a)); }
</span><span class="cx"> WTF_EXPORT_STRING_API bool equal(const StringImpl& a, const StringImpl& b);
</span><span class="cx">
</span><del>-// FIXME: Deprecated. Used only by CaseFoldingHash, which itself is soon to be deprecated and removed, replaced by ASCIICaseFoldingHash.
-WTF_EXPORT_STRING_API bool equalCompatibiltyCaselessNonNull(const StringImpl*, const StringImpl*);
-
</del><span class="cx"> WTF_EXPORT_STRING_API bool equalIgnoringNullity(StringImpl*, StringImpl*);
</span><span class="cx"> WTF_EXPORT_STRING_API bool equalIgnoringNullity(const UChar*, size_t length, StringImpl*);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/ChangeLog        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1,3 +1,91 @@
</span><ins>+2016-01-30 Darin Adler <darin@apple.com>
+
+ Replace CaseFoldingHash with ASCIICaseInsensitiveHash
+ https://bugs.webkit.org/show_bug.cgi?id=153639
+
+ Reviewed by Filip Pizlo.
+
+ * Modules/webdatabase/DatabaseAuthorizer.h: Use ASCIICaseInsensitiveHash
+ for whitelisted functions. Function names are all ASCII.
+
+ * accessibility/AccessibilityObject.cpp: Use ASCIICaseInsensitiveHash
+ for ARIA roles. ARIA roles are all ASCII.
+
+ * crypto/CryptoAlgorithmRegistry.h: Use ASCIICaseInsensitiveHash for
+ crypto algorithm names. Algorithm names are all ASCII.
+
+ * css/CSSFontSelector.cpp:
+ (WebCore::registerLocalFontFacesForFamily): Use ASCIICaseInsensitiveHash
+ for font faces. Face names should use ASCII case insensitive matching;
+ there is no need for non-ASCII case folding.
+ * css/CSSFontSelector.h: Ditto.
+
+ * dom/DOMImplementation.cpp: Use ASCIICaseInsensitiveHash for the
+ FeatureSet. The features are all ASCII.
+
+ * dom/Document.h: Use ASCIICaseInsensitiveHash for the access key
+ map. Access keys are all ASCII.
+
+ * dom/ScriptElement.cpp:
+ (WebCore::isLegacySupportedJavaScriptLanguage): Use ASCIICaseInsensitiveHash
+ for the language set. These strings are all ASCII.
+
+ * editing/EditorCommand.cpp: Use ASCIICaseInsensitiveHash for editor
+ command names. These names are all ASCII.
+
+ * html/HTMLObjectElement.cpp:
+ (WebCore::HTMLObjectElement::parametersForPlugin): Use ASCIICaseInsensitiveHash
+ for parameter names. These names are all ASCII.
+
+ * html/InputType.cpp: Use ASCIICaseInsensitiveHash for the input types.
+ The input types are all ASCII.
+
+ * loader/CrossOriginAccessControl.h: Use ASCIICaseInsensitiveHash for
+ HTTP header field names. These names are all ASCII.
+ * loader/CrossOriginPreflightResultCache.h: Ditto.
+
+ * loader/archive/ArchiveFactory.cpp: Use ASCIICaseInsensitiveHash for
+ MIME types. MIME types are all ASCII.
+ * platform/MIMETypeRegistry.cpp:
+ (WebCore::initializeSupportedImageMIMETypes): Ditto.
+
+ * platform/SchemeRegistry.h: Use ASCIICaseInsensitiveHas for URL schemes.
+ URL schemes are all ASCII.
+ * platform/URL.cpp: Ditto.
+
+ * platform/graphics/FontCache.cpp: Reworked FontPlatformDataCacheKey struct:
+ Made it a conventional struct with non-prefixed data members names. Removed
+ the "==" operator since it was appropriate for hash table lookup but wasn't
+ a true equality operator. Tightened the implementations of the constructors.
+ (WebCore::FontPlatformDataCacheKeyHash::hash): Use ASCIICaseInsensitiveHash.
+ (WebCore::FontPlatformDataCacheKeyHash::equal): Do the equality check here,
+ not using the == operator. And use equalIgnoringASCIICase.
+ (WebCore::FontPlatformDataCacheKeyTraits::isEmptyValue): Added this entire
+ traits struct so we check empty values in a more efficient way.
+ (WebCore::FontCache::getCachedFontPlatformData): Added comments and tweaked
+ style in this function.
+
+ * platform/graphics/FontCascade.cpp:
+ (WebCore::keysMatch): Rename from operator== since this operation is not
+ equality. Changed to equalIgnoringASCIICase and did a little streamlining.
+ (WebCore::makeFontCascadeCacheKey): Use reserveInitialCapacity for slightly
+ better memory use.
+ (WebCore::computeFontCascadeCacheHash): Use IntegerHasher to make computing
+ a hash more efficient by eliminating the overhead of building a vector and
+ even possible heap allocation and deallocation.
+ (WebCore::retrieveOrAddCachedFonts): Use keysMatch instead of ==.
+
+ * platform/graphics/cocoa/FontCacheCoreText.cpp: Use ASCIICaseInsensitiveHash
+ for font family names. These names should use ASCII case insensitive matching;
+ there is no need for non-ASCII case folding.
+
+ * platform/network/HTTPHeaderMap.h: Use ASCIICaseInsensitiveHash for
+ HTTP header field names. These names are all ASCII.
+
+ * rendering/style/RenderStyle.cpp:
+ (WebCore::computeFontHash): Use IntegerHasher to avoid allocating memory just
+ to compute a hash. Use ASCIICaseInsensitiveHash.
+
</ins><span class="cx"> 2016-01-30 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> Unreviewed, rolling out r195871.
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseDatabaseAuthorizerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/DatabaseAuthorizer.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/DatabaseAuthorizer.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/Modules/webdatabase/DatabaseAuthorizer.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -117,7 +117,7 @@
</span><span class="cx">
</span><span class="cx"> const String m_databaseInfoTableName;
</span><span class="cx">
</span><del>- HashSet<String, CaseFoldingHash> m_whitelistedFunctions;
</del><ins>+ HashSet<String, ASCIICaseInsensitiveHash> m_whitelistedFunctions;
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityObject.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1988,7 +1988,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-typedef HashMap<String, AccessibilityRole, CaseFoldingHash> ARIARoleMap;
</del><ins>+typedef HashMap<String, AccessibilityRole, ASCIICaseInsensitiveHash> ARIARoleMap;
</ins><span class="cx"> typedef HashMap<AccessibilityRole, String, DefaultHash<int>::Hash, WTF::UnsignedWithZeroKeyHashTraits<int>> ARIAReverseRoleMap;
</span><span class="cx">
</span><span class="cx"> static ARIARoleMap* gAriaRoleMap = nullptr;
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoCryptoAlgorithmRegistryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/CryptoAlgorithmRegistry.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/CryptoAlgorithmRegistry.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/crypto/CryptoAlgorithmRegistry.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">
</span><span class="cx"> void registerAlgorithm(const String& name, CryptoAlgorithmIdentifier, CryptoAlgorithmConstructor);
</span><span class="cx">
</span><del>- HashMap<String, CryptoAlgorithmIdentifier, CaseFoldingHash> m_nameToIdentifierMap;
</del><ins>+ HashMap<String, CryptoAlgorithmIdentifier, ASCIICaseInsensitiveHash> m_nameToIdentifierMap;
</ins><span class="cx"> HashMap<unsigned, String> m_identifierToNameMap;
</span><span class="cx"> HashMap<unsigned, CryptoAlgorithmConstructor> m_identifierToConstructorMap;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSFontSelectorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSFontSelector.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSFontSelector.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/css/CSSFontSelector.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -224,7 +224,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static void registerLocalFontFacesForFamily(const String& familyName, HashMap<String, Vector<Ref<CSSFontFace>>, CaseFoldingHash>& locallyInstalledFontFaces)
</del><ins>+static void registerLocalFontFacesForFamily(const String& familyName, HashMap<String, Vector<Ref<CSSFontFace>>, ASCIICaseInsensitiveHash>& locallyInstalledFontFaces)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT(!locallyInstalledFontFaces.contains(familyName));
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSFontSelectorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSFontSelector.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSFontSelector.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/css/CSSFontSelector.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -86,9 +86,9 @@
</span><span class="cx"> void beginLoadTimerFired();
</span><span class="cx">
</span><span class="cx"> Document* m_document;
</span><del>- HashMap<String, Vector<Ref<CSSFontFace>>, CaseFoldingHash> m_fontFaces;
- HashMap<String, Vector<Ref<CSSFontFace>>, CaseFoldingHash> m_locallyInstalledFontFaces;
- HashMap<String, HashMap<unsigned, RefPtr<CSSSegmentedFontFace>>, CaseFoldingHash> m_fonts;
</del><ins>+ HashMap<String, Vector<Ref<CSSFontFace>>, ASCIICaseInsensitiveHash> m_fontFaces;
+ HashMap<String, Vector<Ref<CSSFontFace>>, ASCIICaseInsensitiveHash> m_locallyInstalledFontFaces;
+ HashMap<String, HashMap<unsigned, RefPtr<CSSSegmentedFontFace>>, ASCIICaseInsensitiveHash> m_fonts;
</ins><span class="cx"> HashSet<FontSelectorClient*> m_clients;
</span><span class="cx">
</span><span class="cx"> Vector<CachedResourceHandle<CachedFont>> m_fontsToBeginLoading;
</span></span></pre></div>
<a id="trunkSourceWebCoredomDOMImplementationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DOMImplementation.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DOMImplementation.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/dom/DOMImplementation.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">
</span><span class="cx"> using namespace HTMLNames;
</span><span class="cx">
</span><del>-typedef HashSet<String, CaseFoldingHash> FeatureSet;
</del><ins>+typedef HashSet<String, ASCIICaseInsensitiveHash> FeatureSet;
</ins><span class="cx">
</span><span class="cx"> static void addString(FeatureSet& set, const char* string)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/dom/Document.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1613,7 +1613,7 @@
</span><span class="cx"> HashSet<HTMLMediaElement*> m_allowsMediaDocumentInlinePlaybackElements;
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- HashMap<StringImpl*, Element*, CaseFoldingHash> m_elementsByAccessKey;
</del><ins>+ HashMap<StringImpl*, Element*, ASCIICaseInsensitiveHash> m_elementsByAccessKey;
</ins><span class="cx"> bool m_accessKeyMapValid;
</span><span class="cx">
</span><span class="cx"> DocumentOrderedMap m_imagesByUsemap;
</span></span></pre></div>
<a id="trunkSourceWebCoredomScriptElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ScriptElement.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ScriptElement.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/dom/ScriptElement.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -118,7 +118,7 @@
</span><span class="cx"> // We want to accept all the values that either of these browsers accept, but not other values.
</span><span class="cx">
</span><span class="cx"> // FIXME: This function is not HTML5 compliant. These belong in the MIME registry as "text/javascript<version>" entries.
</span><del>- typedef HashSet<String, CaseFoldingHash> LanguageSet;
</del><ins>+ typedef HashSet<String, ASCIICaseInsensitiveHash> LanguageSet;
</ins><span class="cx"> static NeverDestroyed<LanguageSet> languages;
</span><span class="cx"> if (languages.get().isEmpty()) {
</span><span class="cx"> languages.get().add("javascript");
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/EditorCommand.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/EditorCommand.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/editing/EditorCommand.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx"> bool allowExecutionWhenDisabled;
</span><span class="cx"> };
</span><span class="cx">
</span><del>-typedef HashMap<String, const EditorInternalCommand*, CaseFoldingHash> CommandMap;
</del><ins>+typedef HashMap<String, const EditorInternalCommand*, ASCIICaseInsensitiveHash> CommandMap;
</ins><span class="cx">
</span><span class="cx"> static const bool notTextInsertion = false;
</span><span class="cx"> static const bool isTextInsertion = true;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLObjectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLObjectElement.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -166,7 +166,7 @@
</span><span class="cx"> // FIXME: This function should not deal with url or serviceType!
</span><span class="cx"> void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramValues, String& url, String& serviceType)
</span><span class="cx"> {
</span><del>- HashSet<StringImpl*, CaseFoldingHash> uniqueParamNames;
</del><ins>+ HashSet<StringImpl*, ASCIICaseInsensitiveHash> uniqueParamNames;
</ins><span class="cx"> String urlParameter;
</span><span class="cx">
</span><span class="cx"> // Scan the PARAM children and store their name/value pairs.
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlInputTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/InputType.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/InputType.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/html/InputType.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> typedef bool (RuntimeEnabledFeatures::*InputTypeConditionalFunction)() const;
</span><span class="cx"> typedef const AtomicString& (*InputTypeNameFunction)();
</span><span class="cx"> typedef std::unique_ptr<InputType> (*InputTypeFactoryFunction)(HTMLInputElement&);
</span><del>-typedef HashMap<AtomicString, InputTypeFactoryFunction, CaseFoldingHash> InputTypeFactoryMap;
</del><ins>+typedef HashMap<AtomicString, InputTypeFactoryFunction, ASCIICaseInsensitiveHash> InputTypeFactoryMap;
</ins><span class="cx">
</span><span class="cx"> template<class T>
</span><span class="cx"> static std::unique_ptr<InputType> createInputType(HTMLInputElement& element)
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderCrossOriginAccessControlh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/CrossOriginAccessControl.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/CrossOriginAccessControl.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/loader/CrossOriginAccessControl.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-typedef HashSet<String, CaseFoldingHash> HTTPHeaderSet;
</del><ins>+typedef HashSet<String, ASCIICaseInsensitiveHash> HTTPHeaderSet;
</ins><span class="cx">
</span><span class="cx"> class HTTPHeaderMap;
</span><span class="cx"> enum class HTTPHeaderName;
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderCrossOriginPreflightResultCacheh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/CrossOriginPreflightResultCache.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/CrossOriginPreflightResultCache.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/loader/CrossOriginPreflightResultCache.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> std::chrono::steady_clock::time_point m_absoluteExpiryTime;
</span><span class="cx"> StoredCredentials m_credentials;
</span><span class="cx"> HashSet<String> m_methods;
</span><del>- HashSet<String, CaseFoldingHash> m_headers;
</del><ins>+ HashSet<String, ASCIICaseInsensitiveHash> m_headers;
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class CrossOriginPreflightResultCache {
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderarchiveArchiveFactorycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/archive/ArchiveFactory.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/archive/ArchiveFactory.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/loader/archive/ArchiveFactory.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> typedef PassRefPtr<Archive> RawDataCreationFunction(const URL&, SharedBuffer*);
</span><del>-typedef HashMap<String, RawDataCreationFunction*, CaseFoldingHash> ArchiveMIMETypesMap;
</del><ins>+typedef HashMap<String, RawDataCreationFunction*, ASCIICaseInsensitiveHash> ArchiveMIMETypesMap;
</ins><span class="cx">
</span><span class="cx"> // The create functions in the archive classes return PassRefPtr to concrete subclasses
</span><span class="cx"> // of Archive. This adaptor makes the functions have a uniform return type.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformMIMETypeRegistrycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/MIMETypeRegistry.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/MIMETypeRegistry.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/MIMETypeRegistry.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -150,7 +150,7 @@
</span><span class="cx"> static HashSet<String>* pdfAndPostScriptMIMETypes;
</span><span class="cx"> static HashSet<String>* unsupportedTextMIMETypes;
</span><span class="cx">
</span><del>-typedef HashMap<String, Vector<String>*, CaseFoldingHash> MediaMIMETypeMap;
</del><ins>+typedef HashMap<String, Vector<String>*, ASCIICaseInsensitiveHash> MediaMIMETypeMap;
</ins><span class="cx">
</span><span class="cx"> static void initializeSupportedImageMIMETypes()
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformSchemeRegistryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/SchemeRegistry.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/SchemeRegistry.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/SchemeRegistry.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-typedef HashSet<String, CaseFoldingHash> URLSchemesMap;
</del><ins>+typedef HashSet<String, ASCIICaseInsensitiveHash> URLSchemesMap;
</ins><span class="cx">
</span><span class="cx"> class SchemeRegistry {
</span><span class="cx"> public:
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformURLcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/URL.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/URL.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/URL.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1990,7 +1990,7 @@
</span><span class="cx"> return protocolIs("about");
</span><span class="cx"> }
</span><span class="cx">
</span><del>-typedef HashMap<String, unsigned short, CaseFoldingHash> DefaultPortsMap;
</del><ins>+typedef HashMap<String, unsigned short, ASCIICaseInsensitiveHash> DefaultPortsMap;
</ins><span class="cx"> static const DefaultPortsMap& defaultPortsMap()
</span><span class="cx"> {
</span><span class="cx"> static NeverDestroyed<const DefaultPortsMap> defaultPortsMap(DefaultPortsMap({
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsFontCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/FontCache.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/FontCache.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/graphics/FontCache.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -97,51 +97,47 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> struct FontPlatformDataCacheKey {
</span><del>- WTF_MAKE_FAST_ALLOCATED;
-public:
- FontPlatformDataCacheKey() { }
- FontPlatformDataCacheKey(const AtomicString& family, const FontDescription& description)
- : m_fontDescriptionKey(description)
- , m_family(family)
- { }
</del><ins>+ AtomicString family;
+ FontDescriptionKey description;
</ins><span class="cx">
</span><del>- explicit FontPlatformDataCacheKey(HashTableDeletedValueType t)
- : m_fontDescriptionKey(t)
- { }
-
- bool isHashTableDeletedValue() const { return m_fontDescriptionKey.isHashTableDeletedValue(); }
-
- bool operator==(const FontPlatformDataCacheKey& other) const
</del><ins>+ FontPlatformDataCacheKey() = default;
+ FontPlatformDataCacheKey(const AtomicString& family, const FontDescription& description)
+ : family(family), description(description)
</ins><span class="cx"> {
</span><del>- if (m_fontDescriptionKey != other.m_fontDescriptionKey)
- return false;
- if (m_family.impl() == other.m_family.impl())
- return true;
- if (m_family.isNull() || other.m_family.isNull())
- return false;
- return CaseFoldingHash::equal(m_family, other.m_family);
</del><span class="cx"> }
</span><span class="cx">
</span><del>- FontDescriptionKey m_fontDescriptionKey;
- AtomicString m_family;
</del><ins>+ explicit FontPlatformDataCacheKey(HashTableDeletedValueType)
+ : description(HashTableDeletedValue)
+ {
+ }
+ bool isHashTableDeletedValue() const
+ {
+ return description.isHashTableDeletedValue();
+ }
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> struct FontPlatformDataCacheKeyHash {
</span><del>- static unsigned hash(const FontPlatformDataCacheKey& fontKey)
</del><ins>+ static unsigned hash(const FontPlatformDataCacheKey& key)
</ins><span class="cx"> {
</span><del>- return pairIntHash(CaseFoldingHash::hash(fontKey.m_family), fontKey.m_fontDescriptionKey.computeHash());
</del><ins>+ return pairIntHash(ASCIICaseInsensitiveHash::hash(key.family), key.description.computeHash());
</ins><span class="cx"> }
</span><del>-
</del><span class="cx"> static bool equal(const FontPlatformDataCacheKey& a, const FontPlatformDataCacheKey& b)
</span><span class="cx"> {
</span><del>- return a == b;
</del><ins>+ return a.description == b.description && equalIgnoringASCIICase(a.family, b.family);
</ins><span class="cx"> }
</span><del>-
</del><span class="cx"> static const bool safeToCompareToEmptyOrDeleted = true;
</span><span class="cx"> };
</span><span class="cx">
</span><del>-typedef HashMap<FontPlatformDataCacheKey, std::unique_ptr<FontPlatformData>, FontPlatformDataCacheKeyHash, WTF::SimpleClassHashTraits<FontPlatformDataCacheKey>> FontPlatformDataCache;
</del><ins>+struct FontPlatformDataCacheKeyTraits : SimpleClassHashTraits<FontPlatformDataCacheKey> {
+ static const bool hasIsEmptyValueFunction = true;
+ static bool isEmptyValue(const FontPlatformDataCacheKey& key)
+ {
+ return key.family.isNull();
+ }
+};
</ins><span class="cx">
</span><ins>+typedef HashMap<FontPlatformDataCacheKey, std::unique_ptr<FontPlatformData>, FontPlatformDataCacheKeyHash, FontPlatformDataCacheKeyTraits> FontPlatformDataCache;
+
</ins><span class="cx"> static FontPlatformDataCache& fontPlatformDataCache()
</span><span class="cx"> {
</span><span class="cx"> static NeverDestroyed<FontPlatformDataCache> cache;
</span><span class="lines">@@ -207,9 +203,9 @@
</span><span class="cx"> return nullAtom;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-FontPlatformData* FontCache::getCachedFontPlatformData(const FontDescription& fontDescription,
- const AtomicString& passedFamilyName,
- bool checkingAlternateName)
</del><ins>+// FIXME: This function name should not have the word "get" in it for WebKit coding style.
+// FIXME: The boolean here is poor coding style. Easy to factor this into two functions so we don't need it.
+FontPlatformData* FontCache::getCachedFontPlatformData(const FontDescription& fontDescription, const AtomicString& passedFamilyName, bool checkingAlternateName)
</ins><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> FontLocker fontLocker;
</span><span class="lines">@@ -218,9 +214,9 @@
</span><span class="cx"> #if OS(WINDOWS) && ENABLE(OPENTYPE_VERTICAL)
</span><span class="cx"> // Leading "@" in the font name enables Windows vertical flow flag for the font.
</span><span class="cx"> // Because we do vertical flow by ourselves, we don't want to use the Windows feature.
</span><del>- // IE disregards "@" regardless of the orientatoin, so we follow the behavior.
- const AtomicString& familyName = (passedFamilyName.isEmpty() || passedFamilyName[0] != '@') ?
- passedFamilyName : AtomicString(passedFamilyName.impl()->substring(1));
</del><ins>+ // IE disregards "@" regardless of the orientation, so we follow the behavior.
+ const AtomicString& familyName = passedFamilyName[0] != '@'
+ ? passedFamilyName : AtomicString(passedFamilyName.impl()->substring(1));
</ins><span class="cx"> #else
</span><span class="cx"> const AtomicString& familyName = passedFamilyName;
</span><span class="cx"> #endif
</span><span class="lines">@@ -237,14 +233,13 @@
</span><span class="cx"> FontPlatformDataCache::iterator it = addResult.iterator;
</span><span class="cx"> if (addResult.isNewEntry) {
</span><span class="cx"> it->value = createFontPlatformData(fontDescription, familyName);
</span><del>-
</del><span class="cx"> if (!it->value && !checkingAlternateName) {
</span><del>- // We were unable to find a font. We have a small set of fonts that we alias to other names,
- // e.g., Arial/Helvetica, Courier/Courier New, etc. Try looking up the font under the aliased name.
- const AtomicString alternateName = alternateFamilyName(familyName);
</del><ins>+ // We were unable to find a font. We have a small set of fonts that we alias to other names,
+ // e.g., Arial/Helvetica, Courier/Courier New, etc. Try looking up the font under the aliased name.
+ auto alternateName = alternateFamilyName(familyName);
</ins><span class="cx"> if (!alternateName.isNull()) {
</span><span class="cx"> FontPlatformData* fontPlatformDataForAlternateName = getCachedFontPlatformData(fontDescription, alternateName, true);
</span><del>- // Lookup the key in the hash table again as the previous iterator may have
</del><ins>+ // Look up the key in the hash table again as the previous iterator may have
</ins><span class="cx"> // been invalidated by the recursive call to getCachedFontPlatformData().
</span><span class="cx"> it = fontPlatformDataCache().find(key);
</span><span class="cx"> ASSERT(it != fontPlatformDataCache().end());
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsFontCascadecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/FontCascade.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/FontCascade.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/graphics/FontCascade.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -190,22 +190,20 @@
</span><span class="cx"> Ref<FontCascadeFonts> fonts;
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+// FIXME: Should make hash traits for FontCascadeCacheKey instead of using a hash as the key (so we hash a hash).
</ins><span class="cx"> typedef HashMap<unsigned, std::unique_ptr<FontCascadeCacheEntry>, AlreadyHashed> FontCascadeCache;
</span><span class="cx">
</span><del>-static bool operator==(const FontCascadeCacheKey& a, const FontCascadeCacheKey& b)
</del><ins>+static bool keysMatch(const FontCascadeCacheKey& a, const FontCascadeCacheKey& b)
</ins><span class="cx"> {
</span><span class="cx"> if (a.fontDescriptionKey != b.fontDescriptionKey)
</span><span class="cx"> return false;
</span><span class="cx"> if (a.fontSelectorId != b.fontSelectorId || a.fontSelectorVersion != b.fontSelectorVersion)
</span><span class="cx"> return false;
</span><del>- if (a.families.size() != b.families.size())
</del><ins>+ unsigned size = a.families.size();
+ if (size != b.families.size())
</ins><span class="cx"> return false;
</span><del>- for (unsigned i = 0; i < a.families.size(); ++i) {
- auto* aImpl = a.families[i].impl();
- auto* bImpl = b.families[i].impl();
- if (aImpl == bImpl)
- continue;
- if (!aImpl || !bImpl || !CaseFoldingHash::equal(aImpl, bImpl))
</del><ins>+ for (unsigned i = 0; i < size; ++i) {
+ if (!equalIgnoringASCIICase(a.families[i], b.families[i]))
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> return true;
</span><span class="lines">@@ -232,26 +230,27 @@
</span><span class="cx"> {
</span><span class="cx"> FontCascadeCacheKey key;
</span><span class="cx"> key.fontDescriptionKey = FontDescriptionKey(description);
</span><del>- for (unsigned i = 0; i < description.familyCount(); ++i)
- key.families.append(description.familyAt(i));
</del><ins>+ unsigned familyCount = description.familyCount();
+ key.families.reserveInitialCapacity(familyCount);
+ for (unsigned i = 0; i < familyCount; ++i)
+ key.families.uncheckedAppend(description.familyAt(i));
</ins><span class="cx"> key.fontSelectorId = fontSelector ? fontSelector->uniqueId() : 0;
</span><span class="cx"> key.fontSelectorVersion = fontSelector ? fontSelector->version() : 0;
</span><span class="cx"> return key;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-// FIXME: Why can't we just teach HashMap about FontCascadeCacheKey instead of hashing a hash?
</del><span class="cx"> static unsigned computeFontCascadeCacheHash(const FontCascadeCacheKey& key)
</span><span class="cx"> {
</span><del>- Vector<unsigned, 7> hashCodes;
- hashCodes.reserveInitialCapacity(4 + key.families.size());
-
- hashCodes.uncheckedAppend(key.fontDescriptionKey.computeHash());
- hashCodes.uncheckedAppend(key.fontSelectorId);
- hashCodes.uncheckedAppend(key.fontSelectorVersion);
- for (unsigned i = 0; i < key.families.size(); ++i)
- hashCodes.uncheckedAppend(key.families[i].impl() ? CaseFoldingHash::hash(key.families[i]) : 0);
-
- return StringHasher::hashMemory(hashCodes.data(), hashCodes.size() * sizeof(unsigned));
</del><ins>+ // FIXME: Should hash the key and the family name characters rather than making a hash out of other hashes.
+ IntegerHasher hasher;
+ hasher.add(key.fontDescriptionKey.computeHash());
+ hasher.add(key.fontSelectorId);
+ hasher.add(key.fontSelectorVersion);
+ for (unsigned i = 0; i < key.families.size(); ++i) {
+ StringImpl* family = key.families[i].impl();
+ hasher.add(family ? ASCIICaseInsensitiveHash::hash(family) : 0);
+ }
+ return hasher.hash();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void pruneUnreferencedEntriesFromFontCascadeCache()
</span><span class="lines">@@ -272,8 +271,8 @@
</span><span class="cx"> auto key = makeFontCascadeCacheKey(fontDescription, fontSelector.get());
</span><span class="cx">
</span><span class="cx"> unsigned hash = computeFontCascadeCacheHash(key);
</span><del>- auto addResult = fontCascadeCache().add(hash, std::unique_ptr<FontCascadeCacheEntry>());
- if (!addResult.isNewEntry && addResult.iterator->value->key == key)
</del><ins>+ auto addResult = fontCascadeCache().add(hash, nullptr);
+ if (!addResult.isNewEntry && keysMatch(addResult.iterator->value->key, key))
</ins><span class="cx"> return addResult.iterator->value->fonts.get();
</span><span class="cx">
</span><span class="cx"> auto& newEntry = addResult.iterator->value;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscocoaFontCacheCoreTextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -645,7 +645,7 @@
</span><span class="cx"> return SynthesisPair(needsSyntheticBold, needsSyntheticOblique);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-typedef HashSet<String, CaseFoldingHash> Whitelist;
</del><ins>+typedef HashSet<String, ASCIICaseInsensitiveHash> Whitelist;
</ins><span class="cx"> static Whitelist& fontWhitelist()
</span><span class="cx"> {
</span><span class="cx"> static NeverDestroyed<Whitelist> whitelist;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkHTTPHeaderMaph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/HTTPHeaderMap.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/HTTPHeaderMap.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/platform/network/HTTPHeaderMap.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> class HTTPHeaderMap {
</span><span class="cx"> public:
</span><span class="cx"> typedef HashMap<HTTPHeaderName, String, WTF::IntHash<HTTPHeaderName>, WTF::StrongEnumHashTraits<HTTPHeaderName>> CommonHeadersHashMap;
</span><del>- typedef HashMap<String, String, CaseFoldingHash> UncommonHeadersHashMap;
</del><ins>+ typedef HashMap<String, String, ASCIICaseInsensitiveHash> UncommonHeadersHashMap;
</ins><span class="cx">
</span><span class="cx"> class HTTPHeaderMapConstIterator {
</span><span class="cx"> public:
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleRenderStylecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/RenderStyle.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/RenderStyle.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -366,21 +366,19 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(IOS_TEXT_AUTOSIZING)
</span><del>-inline unsigned computeFontHash(const FontCascade& font)
</del><ins>+
+static inline unsigned computeFontHash(const FontCascade& font)
</ins><span class="cx"> {
</span><del>- unsigned hashCodes[2] = {
- CaseFoldingHash::hash(font.fontDescription().firstFamily().impl()),
- static_cast<unsigned>(font.fontDescription().specifiedSize())
- };
- return StringHasher::computeHash(reinterpret_cast<UChar*>(hashCodes), 2 * sizeof(unsigned) / sizeof(UChar));
</del><ins>+ IntegerHasher hasher;
+ hasher.add(ASCIICaseInsensitiveHash::hash(font.fontDescription().firstFamily()));
+ hasher.add(font.fontDescription().specifiedSize());
+ return hasher.hash();
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-uint32_t RenderStyle::hashForTextAutosizing() const
</del><ins>+unsigned RenderStyle::hashForTextAutosizing() const
</ins><span class="cx"> {
</span><span class="cx"> // FIXME: Not a very smart hash. Could be improved upon. See <https://bugs.webkit.org/show_bug.cgi?id=121131>.
</span><del>- uint32_t hash = 0;
-
- hash ^= rareNonInheritedData->m_appearance;
</del><ins>+ unsigned hash = rareNonInheritedData->m_appearance;
</ins><span class="cx"> hash ^= rareNonInheritedData->marginBeforeCollapse;
</span><span class="cx"> hash ^= rareNonInheritedData->marginAfterCollapse;
</span><span class="cx"> hash ^= rareNonInheritedData->lineClamp.value();
</span><span class="lines">@@ -421,6 +419,7 @@
</span><span class="cx"> && noninherited_flags.floating() == other->noninherited_flags.floating()
</span><span class="cx"> && rareNonInheritedData->textOverflow == other->rareNonInheritedData->textOverflow;
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> #endif // ENABLE(IOS_TEXT_AUTOSIZING)
</span><span class="cx">
</span><span class="cx"> bool RenderStyle::inheritedDataShared(const RenderStyle* other) const
</span></span></pre></div>
<a id="trunkSourceWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/ChangeLog (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/ChangeLog        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit/win/ChangeLog        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-01-30 Darin Adler <darin@apple.com>
+
+ Replace CaseFoldingHash with ASCIICaseInsensitiveHash
+ https://bugs.webkit.org/show_bug.cgi?id=153639
+
+ Reviewed by Filip Pizlo.
+
+ * WebCoreStatistics.cpp:
+ (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names.
+ These names are all ASCII.
+
+ * WebURLResponse.cpp:
+ (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header
+ field names. These names are all ASCII.
+
</ins><span class="cx"> 2016-01-29 Ryan Haddad <ryanhaddad@apple.com>
</span><span class="cx">
</span><span class="cx"> Attempt to fix the Windows build after r195799
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebCoreStatisticscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebCoreStatistics.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebCoreStatistics.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit/win/WebCoreStatistics.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -295,7 +295,7 @@
</span><span class="cx"> unsigned long long heapFree = JSDOMWindow::commonVM().heap.capacity() - heapSize;
</span><span class="cx"> GlobalMemoryStatistics globalMemoryStats = globalMemoryStatistics();
</span><span class="cx">
</span><del>- HashMap<String, unsigned long long, CaseFoldingHash> fields;
</del><ins>+ HashMap<String, unsigned long long, ASCIICaseInsensitiveHash> fields;
</ins><span class="cx"> fields.add("FastMallocReservedVMBytes", static_cast<unsigned long long>(fastMallocStatistics.reservedVMBytes));
</span><span class="cx"> fields.add("FastMallocCommittedVMBytes", static_cast<unsigned long long>(fastMallocStatistics.committedVMBytes));
</span><span class="cx"> fields.add("FastMallocFreeListBytes", static_cast<unsigned long long>(fastMallocStatistics.freeListBytes));
</span><span class="lines">@@ -304,7 +304,7 @@
</span><span class="cx"> fields.add("JavaScriptStackSize", static_cast<unsigned long long>(globalMemoryStats.stackBytes));
</span><span class="cx"> fields.add("JavaScriptJITSize", static_cast<unsigned long long>(globalMemoryStats.JITBytes));
</span><span class="cx">
</span><del>- *statistics = COMPropertyBag<unsigned long long, String, CaseFoldingHash>::adopt(fields);
</del><ins>+ *statistics = COMPropertyBag<unsigned long long, String, ASCIICaseInsensitiveHash>::adopt(fields);
</ins><span class="cx">
</span><span class="cx"> return S_OK;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebURLResponsecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebURLResponse.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebURLResponse.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit/win/WebURLResponse.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -362,11 +362,11 @@
</span><span class="cx"> if (!headerFields)
</span><span class="cx"> return E_POINTER;
</span><span class="cx">
</span><del>- HashMap<String, String, CaseFoldingHash> fields;
</del><ins>+ HashMap<String, String, ASCIICaseInsensitiveHash> fields;
</ins><span class="cx"> for (const auto& keyValuePair : m_response.httpHeaderFields())
</span><span class="cx"> fields.add(keyValuePair.key, keyValuePair.value);
</span><span class="cx">
</span><del>- *headerFields = COMPropertyBag<String, String, CaseFoldingHash>::adopt(fields);
</del><ins>+ *headerFields = COMPropertyBag<String, String, ASCIICaseInsensitiveHash>::adopt(fields);
</ins><span class="cx"> return S_OK;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit2/ChangeLog        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2016-01-30 Darin Adler <darin@apple.com>
+
+ Replace CaseFoldingHash with ASCIICaseInsensitiveHash
+ https://bugs.webkit.org/show_bug.cgi?id=153639
+
+ Reviewed by Filip Pizlo.
+
+ * UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm: Use ASCIICaseInsensitiveHash
+ for MIME types. MIME types are all ASCII.
+
+ * UIProcess/Plugins/PlugInAutoStartProvider.h: Use ASCIICaseInsensitiveHash for
+ origins. Origin strings should use ASCII case insensitive matching and should not
+ fold non-ASCII case.
+
+ * WebProcess/WebPage/WebPage.h: Use ASCIICaseInsensitiveHash for MIME types.
+ MIME types are all ASCII.
+
+ * WebProcess/WebProcess.cpp:
+ (WebKit::addCaseFoldedCharacters): Use ASCIICaseInsensitiveHash to hash plug-in
+ origin strings. (See rationale above.)
+ (WebKit::hashForPlugInOrigin): Updated comment.
+
</ins><span class="cx"> 2016-01-30 Jeremy Huddleston Sequoia <jeremyhu@apple.com>
</span><span class="cx">
</span><span class="cx"> [GTK] Use configured python executable when executing generate-inspector-gresource-manifest.py
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaWKWebViewContentProviderRegistrymm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> using namespace WebKit;
</span><span class="cx">
</span><span class="cx"> @implementation WKWebViewContentProviderRegistry {
</span><del>- HashMap<String, Class <WKWebViewContentProvider>, CaseFoldingHash> _contentProviderForMIMEType;
</del><ins>+ HashMap<String, Class <WKWebViewContentProvider>, ASCIICaseInsensitiveHash> _contentProviderForMIMEType;
</ins><span class="cx"> HashCountedSet<WebPageProxy*> _pages;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProviderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">
</span><span class="cx"> void setAutoStartOriginsTableWithItemsPassingTest(API::Dictionary&, std::function<bool(double expirationTimestamp)>);
</span><span class="cx">
</span><del>- typedef HashMap<String, PlugInAutoStartOriginMap, CaseFoldingHash> AutoStartTable;
</del><ins>+ typedef HashMap<String, PlugInAutoStartOriginMap, ASCIICaseInsensitiveHash> AutoStartTable;
</ins><span class="cx"> typedef HashMap<WebCore::SessionID, AutoStartTable> SessionAutoStartTable;
</span><span class="cx"> SessionAutoStartTable m_autoStartTable;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1393,7 +1393,7 @@
</span><span class="cx"> WebCore::Timer m_volatilityTimer;
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- HashSet<String, CaseFoldingHash> m_mimeTypesWithCustomContentProviders;
</del><ins>+ HashSet<String, ASCIICaseInsensitiveHash> m_mimeTypesWithCustomContentProviders;
</ins><span class="cx"> WebCore::Color m_backgroundColor;
</span><span class="cx">
</span><span class="cx"> HashSet<unsigned> m_activeRenderingSuppressionTokens;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebProcess.cpp (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebProcess.cpp        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Source/WebKit2/WebProcess/WebProcess.cpp        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -721,16 +721,16 @@
</span><span class="cx"> if (string.isEmpty())
</span><span class="cx"> return;
</span><span class="cx"> if (string.is8Bit()) {
</span><del>- hasher.addCharacters<LChar, CaseFoldingHash::foldCase<LChar>>(string.characters8(), string.length());
</del><ins>+ hasher.addCharacters<LChar, ASCIICaseInsensitiveHash::foldCase<LChar>>(string.characters8(), string.length());
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><del>- hasher.addCharacters<UChar, CaseFoldingHash::foldCase<UChar>>(string.characters16(), string.length());
</del><ins>+ hasher.addCharacters<UChar, ASCIICaseInsensitiveHash::foldCase<UChar>>(string.characters16(), string.length());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static unsigned hashForPlugInOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType)
</span><span class="cx"> {
</span><span class="cx"> // We want to avoid concatenating the strings and then taking the hash, since that could lead to an expensive conversion.
</span><del>- // We also want to avoid using the hash() function in StringImpl or CaseFoldingHash because that masks out bits for the use of flags.
</del><ins>+ // We also want to avoid using the hash() function in StringImpl or ASCIICaseInsensitiveHash because that masks out bits for the use of flags.
</ins><span class="cx"> StringHasher hasher;
</span><span class="cx"> addCaseFoldedCharacters(hasher, pageOrigin);
</span><span class="cx"> hasher.addCharacter(0);
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Tools/ChangeLog        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2016-01-30 Darin Adler <darin@apple.com>
+
+ Replace CaseFoldingHash with ASCIICaseInsensitiveHash
+ https://bugs.webkit.org/show_bug.cgi?id=153639
+
+ Reviewed by Filip Pizlo.
+
+ * Scripts/do-webcore-rename: Use script to do this rename.
+
</ins><span class="cx"> 2016-01-30 Ryosuke Niwa <rniwa@webkit.org>
</span><span class="cx">
</span><span class="cx"> TouchList should be retargeted
</span></span></pre></div>
<a id="trunkToolsScriptsdowebcorerename"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/do-webcore-rename (195910 => 195911)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/do-webcore-rename        2016-01-30 21:49:31 UTC (rev 195910)
+++ trunk/Tools/Scripts/do-webcore-rename        2016-01-30 21:53:47 UTC (rev 195911)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx"> my $isDOMTypeRename = 0;
</span><span class="cx"> my %renames = (
</span><span class="cx"> # Renames go here in the form of:
</span><del>- "deleteAllValues" => "deprecatedDeleteAllValues",
</del><ins>+ "CaseFoldingHash" => "ASCIICaseInsensitiveHash",
</ins><span class="cx"> );
</span><span class="cx">
</span><span class="cx"> my %renamesContemplatedForTheFuture = (
</span></span></pre>
</div>
</div>
</body>
</html>