<!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>[173212] trunk/Source/WebCore</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/173212">173212</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-09-03 11:42:54 -0700 (Wed, 03 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use StringBuilder append(char) and appendLiteral in more places
https://bugs.webkit.org/show_bug.cgi?id=136470

Patch by Joseph Pecoraro &lt;pecoraro@apple.com&gt; on 2014-09-03
Reviewed by Andreas Kling.

* Modules/indexeddb/IDBKeyData.cpp:
(WebCore::IDBKeyData::loggingString):
* Modules/websockets/WebSocket.cpp:
(WebCore::encodeProtocolString):
* Modules/websockets/WebSocketExtensionDispatcher.cpp:
(WebCore::WebSocketExtensionDispatcher::createHeaderValue):
(WebCore::WebSocketExtensionDispatcher::appendAcceptedExtension):
* Modules/websockets/WebSocketHandshake.cpp:
(WebCore::WebSocketHandshake::clientLocation):
(WebCore::WebSocketHandshake::clientHandshakeMessage):
* css/CSSCalculationValue.cpp:
(WebCore::buildCssText):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::cssText):
* css/CSSMediaRule.cpp:
(WebCore::CSSMediaRule::cssText):
* css/CSSSelectorList.cpp:
(WebCore::CSSSelectorList::selectorsText):
* css/CSSSupportsRule.cpp:
(WebCore::CSSSupportsRule::cssText):
* css/MediaQuery.cpp:
(WebCore::MediaQuery::serialize):
* editing/MarkupAccumulator.cpp:
(WebCore::MarkupAccumulator::generateUniquePrefix):
* editing/markup.cpp:
(WebCore::urlToMarkup):
* fileapi/FileReaderLoader.cpp:
(WebCore::FileReaderLoader::convertToDataURL):
* html/EmailInputType.cpp:
(WebCore::EmailInputType::sanitizeValue):
* html/FormController.cpp:
(WebCore::recordFormStructure):
* html/parser/XSSAuditorDelegate.cpp:
(WebCore::buildConsoleError):
* html/track/WebVTTParser.cpp:
(WebCore::WebVTTParser::collectCueText):
* mathml/MathMLMencloseElement.cpp:
(WebCore::MathMLMencloseElement::longDivLeftPadding):
* page/PageSerializer.cpp:
(WebCore::SerializerMarkupAccumulator::appendElement):
* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::toRawString):
* page/scrolling/ScrollingCoordinator.cpp:
(WebCore::ScrollingCoordinator::synchronousScrollingReasonsAsText):
* page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:
(WebCore::logThreadedScrollingMode):
* platform/PODInterval.h:
(WebCore::PODInterval::toString):
* platform/PODRedBlackTree.h:
(WebCore::PODRedBlackTree::dumpFromNode):
* platform/UUID.cpp:
(WebCore::createCanonicalUUIDString):
* platform/network/ProxyServer.cpp:
(WebCore::appendProxyServerString):
(WebCore::toString):
* platform/text/DateTimeFormat.cpp:
(WebCore::DateTimeFormat::quoteAndAppendLiteral):
* platform/text/PlatformLocale.cpp:
(WebCore::DateTimeStringBuilder::zeroPadString):
(WebCore::Locale::convertFromLocalizedNumber):
* platform/text/TextStream.cpp:
(WebCore::TextStream::operator&lt;&lt;):
* rendering/RenderListMarker.cpp:
(WebCore::listMarkerText):
* testing/Internals.cpp:
(WebCore::Internals::parserMetaData):
(WebCore::Internals::getCurrentCursorInfo):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBKeyDatacpp">trunk/Source/WebCore/Modules/indexeddb/IDBKeyData.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWebSocketcpp">trunk/Source/WebCore/Modules/websockets/WebSocket.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWebSocketExtensionDispatchercpp">trunk/Source/WebCore/Modules/websockets/WebSocketExtensionDispatcher.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWebSocketHandshakecpp">trunk/Source/WebCore/Modules/websockets/WebSocketHandshake.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSCalculationValuecpp">trunk/Source/WebCore/css/CSSCalculationValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSMediaRulecpp">trunk/Source/WebCore/css/CSSMediaRule.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSSelectorListcpp">trunk/Source/WebCore/css/CSSSelectorList.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSSupportsRulecpp">trunk/Source/WebCore/css/CSSSupportsRule.cpp</a></li>
<li><a href="#trunkSourceWebCorecssMediaQuerycpp">trunk/Source/WebCore/css/MediaQuery.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingMarkupAccumulatorcpp">trunk/Source/WebCore/editing/MarkupAccumulator.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingmarkupcpp">trunk/Source/WebCore/editing/markup.cpp</a></li>
<li><a href="#trunkSourceWebCorefileapiFileReaderLoadercpp">trunk/Source/WebCore/fileapi/FileReaderLoader.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlEmailInputTypecpp">trunk/Source/WebCore/html/EmailInputType.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlFormControllercpp">trunk/Source/WebCore/html/FormController.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserXSSAuditorDelegatecpp">trunk/Source/WebCore/html/parser/XSSAuditorDelegate.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackWebVTTParsercpp">trunk/Source/WebCore/html/track/WebVTTParser.cpp</a></li>
<li><a href="#trunkSourceWebCoremathmlMathMLMencloseElementcpp">trunk/Source/WebCore/mathml/MathMLMencloseElement.cpp</a></li>
<li><a href="#trunkSourceWebCorepagePageSerializercpp">trunk/Source/WebCore/page/PageSerializer.cpp</a></li>
<li><a href="#trunkSourceWebCorepageSecurityOrigincpp">trunk/Source/WebCore/page/SecurityOrigin.cpp</a></li>
<li><a href="#trunkSourceWebCorepagescrollingScrollingCoordinatorcpp">trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp</a></li>
<li><a href="#trunkSourceWebCorepagescrollingmacScrollingTreeFrameScrollingNodeMacmm">trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformPODIntervalh">trunk/Source/WebCore/platform/PODInterval.h</a></li>
<li><a href="#trunkSourceWebCoreplatformPODRedBlackTreeh">trunk/Source/WebCore/platform/PODRedBlackTree.h</a></li>
<li><a href="#trunkSourceWebCoreplatformUUIDcpp">trunk/Source/WebCore/platform/UUID.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkProxyServercpp">trunk/Source/WebCore/platform/network/ProxyServer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformtextDateTimeFormatcpp">trunk/Source/WebCore/platform/text/DateTimeFormat.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformtextPlatformLocalecpp">trunk/Source/WebCore/platform/text/PlatformLocale.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformtextTextStreamcpp">trunk/Source/WebCore/platform/text/TextStream.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListMarkercpp">trunk/Source/WebCore/rendering/RenderListMarker.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/ChangeLog        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -1,3 +1,78 @@
</span><ins>+2014-09-03  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
+        Use StringBuilder append(char) and appendLiteral in more places
+        https://bugs.webkit.org/show_bug.cgi?id=136470
+
+        Reviewed by Andreas Kling.
+
+        * Modules/indexeddb/IDBKeyData.cpp:
+        (WebCore::IDBKeyData::loggingString):
+        * Modules/websockets/WebSocket.cpp:
+        (WebCore::encodeProtocolString):
+        * Modules/websockets/WebSocketExtensionDispatcher.cpp:
+        (WebCore::WebSocketExtensionDispatcher::createHeaderValue):
+        (WebCore::WebSocketExtensionDispatcher::appendAcceptedExtension):
+        * Modules/websockets/WebSocketHandshake.cpp:
+        (WebCore::WebSocketHandshake::clientLocation):
+        (WebCore::WebSocketHandshake::clientHandshakeMessage):
+        * css/CSSCalculationValue.cpp:
+        (WebCore::buildCssText):
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::CSSComputedStyleDeclaration::cssText):
+        * css/CSSMediaRule.cpp:
+        (WebCore::CSSMediaRule::cssText):
+        * css/CSSSelectorList.cpp:
+        (WebCore::CSSSelectorList::selectorsText):
+        * css/CSSSupportsRule.cpp:
+        (WebCore::CSSSupportsRule::cssText):
+        * css/MediaQuery.cpp:
+        (WebCore::MediaQuery::serialize):
+        * editing/MarkupAccumulator.cpp:
+        (WebCore::MarkupAccumulator::generateUniquePrefix):
+        * editing/markup.cpp:
+        (WebCore::urlToMarkup):
+        * fileapi/FileReaderLoader.cpp:
+        (WebCore::FileReaderLoader::convertToDataURL):
+        * html/EmailInputType.cpp:
+        (WebCore::EmailInputType::sanitizeValue):
+        * html/FormController.cpp:
+        (WebCore::recordFormStructure):
+        * html/parser/XSSAuditorDelegate.cpp:
+        (WebCore::buildConsoleError):
+        * html/track/WebVTTParser.cpp:
+        (WebCore::WebVTTParser::collectCueText):
+        * mathml/MathMLMencloseElement.cpp:
+        (WebCore::MathMLMencloseElement::longDivLeftPadding):
+        * page/PageSerializer.cpp:
+        (WebCore::SerializerMarkupAccumulator::appendElement):
+        * page/SecurityOrigin.cpp:
+        (WebCore::SecurityOrigin::toRawString):
+        * page/scrolling/ScrollingCoordinator.cpp:
+        (WebCore::ScrollingCoordinator::synchronousScrollingReasonsAsText):
+        * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:
+        (WebCore::logThreadedScrollingMode):
+        * platform/PODInterval.h:
+        (WebCore::PODInterval::toString):
+        * platform/PODRedBlackTree.h:
+        (WebCore::PODRedBlackTree::dumpFromNode):
+        * platform/UUID.cpp:
+        (WebCore::createCanonicalUUIDString):
+        * platform/network/ProxyServer.cpp:
+        (WebCore::appendProxyServerString):
+        (WebCore::toString):
+        * platform/text/DateTimeFormat.cpp:
+        (WebCore::DateTimeFormat::quoteAndAppendLiteral):
+        * platform/text/PlatformLocale.cpp:
+        (WebCore::DateTimeStringBuilder::zeroPadString):
+        (WebCore::Locale::convertFromLocalizedNumber):
+        * platform/text/TextStream.cpp:
+        (WebCore::TextStream::operator&lt;&lt;):
+        * rendering/RenderListMarker.cpp:
+        (WebCore::listMarkerText):
+        * testing/Internals.cpp:
+        (WebCore::Internals::parserMetaData):
+        (WebCore::Internals::getCurrentCursorInfo):
+
</ins><span class="cx"> 2014-09-03  Bear Travis  &lt;betravis@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [CSS Font Loading] Enable Page Caching
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBKeyDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBKeyData.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBKeyData.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBKeyData.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -266,9 +266,9 @@
</span><span class="cx">             for (size_t i = 0; i &lt; arrayValue.size(); ++i) {
</span><span class="cx">                 result.append(arrayValue[i].loggingString());
</span><span class="cx">                 if (i &lt; arrayValue.size() - 1)
</span><del>-                    result.append(&quot;, &quot;);
</del><ins>+                    result.appendLiteral(&quot;, &quot;);
</ins><span class="cx">             }
</span><del>-            result.append(&quot; }&quot;);
</del><ins>+            result.appendLiteral(&quot; }&quot;);
</ins><span class="cx">             return result.toString();
</span><span class="cx">         }
</span><span class="cx">     case IDBKey::StringType:
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWebSocketcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WebSocket.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WebSocket.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/Modules/websockets/WebSocket.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -97,7 +97,7 @@
</span><span class="cx">         if (protocol[i] &lt; 0x20 || protocol[i] &gt; 0x7E)
</span><span class="cx">             builder.append(String::format(&quot;\\u%04X&quot;, protocol[i]));
</span><span class="cx">         else if (protocol[i] == 0x5c)
</span><del>-            builder.append(&quot;\\\\&quot;);
</del><ins>+            builder.appendLiteral(&quot;\\\\&quot;);
</ins><span class="cx">         else
</span><span class="cx">             builder.append(protocol[i]);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWebSocketExtensionDispatchercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WebSocketExtensionDispatcher.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WebSocketExtensionDispatcher.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/Modules/websockets/WebSocketExtensionDispatcher.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">     StringBuilder builder;
</span><span class="cx">     builder.append(m_processors[0]-&gt;handshakeString());
</span><span class="cx">     for (size_t i = 1; i &lt; numProcessors; ++i) {
</span><del>-        builder.append(&quot;, &quot;);
</del><ins>+        builder.appendLiteral(&quot;, &quot;);
</ins><span class="cx">         builder.append(m_processors[i]-&gt;handshakeString());
</span><span class="cx">     }
</span><span class="cx">     return builder.toString();
</span><span class="lines">@@ -78,14 +78,14 @@
</span><span class="cx"> void WebSocketExtensionDispatcher::appendAcceptedExtension(const String&amp; extensionToken, HashMap&lt;String, String&gt;&amp; extensionParameters)
</span><span class="cx"> {
</span><span class="cx">     if (!m_acceptedExtensionsBuilder.isEmpty())
</span><del>-        m_acceptedExtensionsBuilder.append(&quot;, &quot;);
</del><ins>+        m_acceptedExtensionsBuilder.appendLiteral(&quot;, &quot;);
</ins><span class="cx">     m_acceptedExtensionsBuilder.append(extensionToken);
</span><span class="cx">     // FIXME: Should use ListHashSet to keep the order of the parameters.
</span><span class="cx">     for (HashMap&lt;String, String&gt;::const_iterator iterator = extensionParameters.begin(); iterator != extensionParameters.end(); ++iterator) {
</span><del>-        m_acceptedExtensionsBuilder.append(&quot;; &quot;);
</del><ins>+        m_acceptedExtensionsBuilder.appendLiteral(&quot;; &quot;);
</ins><span class="cx">         m_acceptedExtensionsBuilder.append(iterator-&gt;key);
</span><span class="cx">         if (!iterator-&gt;value.isNull()) {
</span><del>-            m_acceptedExtensionsBuilder.append(&quot;=&quot;);
</del><ins>+            m_acceptedExtensionsBuilder.append('=');
</ins><span class="cx">             m_acceptedExtensionsBuilder.append(iterator-&gt;value);
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWebSocketHandshakecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WebSocketHandshake.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WebSocketHandshake.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/Modules/websockets/WebSocketHandshake.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -172,7 +172,7 @@
</span><span class="cx"> {
</span><span class="cx">     StringBuilder builder;
</span><span class="cx">     builder.append(m_secure ? &quot;wss&quot; : &quot;ws&quot;);
</span><del>-    builder.append(&quot;://&quot;);
</del><ins>+    builder.appendLiteral(&quot;://&quot;);
</ins><span class="cx">     builder.append(hostName(m_url, m_secure));
</span><span class="cx">     builder.append(resourceName(m_url));
</span><span class="cx">     return builder.toString();
</span><span class="lines">@@ -183,9 +183,9 @@
</span><span class="cx">     // Keep the following consistent with clientHandshakeRequest().
</span><span class="cx">     StringBuilder builder;
</span><span class="cx"> 
</span><del>-    builder.append(&quot;GET &quot;);
</del><ins>+    builder.appendLiteral(&quot;GET &quot;);
</ins><span class="cx">     builder.append(resourceName(m_url));
</span><del>-    builder.append(&quot; HTTP/1.1\r\n&quot;);
</del><ins>+    builder.appendLiteral(&quot; HTTP/1.1\r\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">     Vector&lt;String&gt; fields;
</span><span class="cx">     fields.append(&quot;Upgrade: websocket&quot;);
</span><span class="lines">@@ -226,10 +226,10 @@
</span><span class="cx"> 
</span><span class="cx">     for (size_t i = 0; i &lt; fields.size(); i++) {
</span><span class="cx">         builder.append(fields[i]);
</span><del>-        builder.append(&quot;\r\n&quot;);
</del><ins>+        builder.appendLiteral(&quot;\r\n&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    builder.append(&quot;\r\n&quot;);
</del><ins>+    builder.appendLiteral(&quot;\r\n&quot;);
</ins><span class="cx"> 
</span><span class="cx">     return builder.toString().utf8();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSCalculationValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSCalculationValue.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSCalculationValue.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/css/CSSCalculationValue.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -159,7 +159,7 @@
</span><span class="cx"> static String buildCssText(const String&amp; expression)
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span><del>-    result.append(&quot;calc&quot;);
</del><ins>+    result.appendLiteral(&quot;calc&quot;);
</ins><span class="cx">     bool expressionHasSingleTerm = expression[0] != '(';
</span><span class="cx">     if (expressionHasSingleTerm)
</span><span class="cx">         result.append('(');
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -1278,7 +1278,7 @@
</span><span class="cx">         if (i)
</span><span class="cx">             result.append(' ');
</span><span class="cx">         result.append(getPropertyName(computedProperties[i]));
</span><del>-        result.append(&quot;: &quot;, 2);
</del><ins>+        result.appendLiteral(&quot;: &quot;);
</ins><span class="cx">         result.append(getPropertyValue(computedProperties[i]));
</span><span class="cx">         result.append(';');
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSMediaRulecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSMediaRule.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSMediaRule.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/css/CSSMediaRule.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> String CSSMediaRule::cssText() const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span><del>-    result.append(&quot;@media &quot;);
</del><ins>+    result.appendLiteral(&quot;@media &quot;);
</ins><span class="cx">     if (mediaQueries()) {
</span><span class="cx">         result.append(mediaQueries()-&gt;mediaText());
</span><span class="cx">         result.append(' ');
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSSelectorListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSSelectorList.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSSelectorList.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/css/CSSSelectorList.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -125,7 +125,7 @@
</span><span class="cx"> 
</span><span class="cx">     for (const CSSSelector* s = first(); s; s = next(s)) {
</span><span class="cx">         if (s != first())
</span><del>-            result.append(&quot;, &quot;);
</del><ins>+            result.appendLiteral(&quot;, &quot;);
</ins><span class="cx">         result.append(s-&gt;selectorText());
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSSupportsRulecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSSupportsRule.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSSupportsRule.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/css/CSSSupportsRule.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -50,9 +50,9 @@
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span><span class="cx"> 
</span><del>-    result.append(&quot;@supports &quot;);
</del><ins>+    result.appendLiteral(&quot;@supports &quot;);
</ins><span class="cx">     result.append(conditionText());
</span><del>-    result.append(&quot; {\n&quot;);
</del><ins>+    result.appendLiteral(&quot; {\n&quot;);
</ins><span class="cx">     appendCssTextForItems(result);
</span><span class="cx">     result.append('}');
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorecssMediaQuerycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/MediaQuery.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/MediaQuery.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/css/MediaQuery.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -41,10 +41,10 @@
</span><span class="cx">     if (!m_ignored) {
</span><span class="cx">         switch (m_restrictor) {
</span><span class="cx">         case MediaQuery::Only:
</span><del>-            result.append(&quot;only &quot;);
</del><ins>+            result.appendLiteral(&quot;only &quot;);
</ins><span class="cx">             break;
</span><span class="cx">         case MediaQuery::Not:
</span><del>-            result.append(&quot;not &quot;);
</del><ins>+            result.appendLiteral(&quot;not &quot;);
</ins><span class="cx">             break;
</span><span class="cx">         case MediaQuery::None:
</span><span class="cx">             break;
</span><span class="lines">@@ -57,17 +57,17 @@
</span><span class="cx"> 
</span><span class="cx">         if (m_mediaType != &quot;all&quot; || m_restrictor != None) {
</span><span class="cx">             result.append(m_mediaType);
</span><del>-            result.append(&quot; and &quot;);
</del><ins>+            result.appendLiteral(&quot; and &quot;);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         result.append(m_expressions-&gt;at(0)-&gt;serialize());
</span><span class="cx">         for (size_t i = 1; i &lt; m_expressions-&gt;size(); ++i) {
</span><del>-            result.append(&quot; and &quot;);
</del><ins>+            result.appendLiteral(&quot; and &quot;);
</ins><span class="cx">             result.append(m_expressions-&gt;at(i)-&gt;serialize());
</span><span class="cx">         }
</span><span class="cx">     } else {
</span><span class="cx">         // If query is invalid, serialized text should turn into &quot;not all&quot;.
</span><del>-        result.append(&quot;not all&quot;);
</del><ins>+        result.appendLiteral(&quot;not all&quot;);
</ins><span class="cx">     }
</span><span class="cx">     return result.toString();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingMarkupAccumulatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/MarkupAccumulator.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/MarkupAccumulator.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/editing/MarkupAccumulator.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -493,7 +493,7 @@
</span><span class="cx">     StringBuilder builder;
</span><span class="cx">     do {
</span><span class="cx">         builder.clear();
</span><del>-        builder.append(&quot;NS&quot;);
</del><ins>+        builder.appendLiteral(&quot;NS&quot;);
</ins><span class="cx">         builder.appendNumber(++m_prefixLevel);
</span><span class="cx">         const AtomicString&amp; name = builder.toAtomicString();
</span><span class="cx">         if (!namespaces.get(name.impl())) {
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingmarkupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/markup.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/markup.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/editing/markup.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -858,11 +858,11 @@
</span><span class="cx"> String urlToMarkup(const URL&amp; url, const String&amp; title)
</span><span class="cx"> {
</span><span class="cx">     StringBuilder markup;
</span><del>-    markup.append(&quot;&lt;a href=\&quot;&quot;);
</del><ins>+    markup.appendLiteral(&quot;&lt;a href=\&quot;&quot;);
</ins><span class="cx">     markup.append(url.string());
</span><del>-    markup.append(&quot;\&quot;&gt;&quot;);
</del><ins>+    markup.appendLiteral(&quot;\&quot;&gt;&quot;);
</ins><span class="cx">     MarkupAccumulator::appendCharactersReplacingEntities(markup, title, 0, title.length(), EntityMaskInPCDATA);
</span><del>-    markup.append(&quot;&lt;/a&gt;&quot;);
</del><ins>+    markup.appendLiteral(&quot;&lt;/a&gt;&quot;);
</ins><span class="cx">     return markup.toString();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorefileapiFileReaderLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/fileapi/FileReaderLoader.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/fileapi/FileReaderLoader.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/fileapi/FileReaderLoader.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -326,7 +326,7 @@
</span><span class="cx"> void FileReaderLoader::convertToDataURL()
</span><span class="cx"> {
</span><span class="cx">     StringBuilder builder;
</span><del>-    builder.append(&quot;data:&quot;);
</del><ins>+    builder.appendLiteral(&quot;data:&quot;);
</ins><span class="cx"> 
</span><span class="cx">     if (!m_bytesLoaded) {
</span><span class="cx">         m_stringResult = builder.toString();
</span><span class="lines">@@ -334,7 +334,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     builder.append(m_dataType);
</span><del>-    builder.append(&quot;;base64,&quot;);
</del><ins>+    builder.appendLiteral(&quot;;base64,&quot;);
</ins><span class="cx"> 
</span><span class="cx">     Vector&lt;char&gt; out;
</span><span class="cx">     base64Encode(m_rawData-&gt;data(), m_bytesLoaded, out);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlEmailInputTypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/EmailInputType.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/EmailInputType.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/html/EmailInputType.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">     StringBuilder strippedValue;
</span><span class="cx">     for (unsigned i = 0; i &lt; addresses.size(); ++i) {
</span><span class="cx">         if (i &gt; 0)
</span><del>-            strippedValue.append(&quot;,&quot;);
</del><ins>+            strippedValue.append(',');
</ins><span class="cx">         strippedValue.append(stripLeadingAndTrailingHTMLSpaces(addresses[i]));
</span><span class="cx">     }
</span><span class="cx">     return strippedValue.toString();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlFormControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/FormController.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/FormController.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/html/FormController.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -302,7 +302,7 @@
</span><span class="cx">     // 2 is enough to distinguish forms in webkit.org/b/91209#c0
</span><span class="cx">     const size_t namedControlsToBeRecorded = 2;
</span><span class="cx">     const Vector&lt;FormAssociatedElement*&gt;&amp; controls = form.associatedElements();
</span><del>-    builder.append(&quot; [&quot;);
</del><ins>+    builder.appendLiteral(&quot; [&quot;);
</ins><span class="cx">     for (size_t i = 0, namedControls = 0; i &lt; controls.size() &amp;&amp; namedControls &lt; namedControlsToBeRecorded; ++i) {
</span><span class="cx">         if (!controls[i]-&gt;isFormControlElementWithState())
</span><span class="cx">             continue;
</span><span class="lines">@@ -314,9 +314,9 @@
</span><span class="cx">             continue;
</span><span class="cx">         namedControls++;
</span><span class="cx">         builder.append(name);
</span><del>-        builder.append(&quot; &quot;);
</del><ins>+        builder.append(' ');
</ins><span class="cx">     }
</span><del>-    builder.append(&quot;]&quot;);
</del><ins>+    builder.append(']');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static inline String formSignature(const HTMLFormElement&amp; form)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserXSSAuditorDelegatecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/XSSAuditorDelegate.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/XSSAuditorDelegate.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/html/parser/XSSAuditorDelegate.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -53,20 +53,20 @@
</span><span class="cx"> static inline String buildConsoleError(const XSSInfo&amp; xssInfo)
</span><span class="cx"> {
</span><span class="cx">     StringBuilder message;
</span><del>-    message.append(&quot;The XSS Auditor &quot;);
</del><ins>+    message.appendLiteral(&quot;The XSS Auditor &quot;);
</ins><span class="cx">     message.append(xssInfo.m_didBlockEntirePage ? &quot;blocked access to&quot; : &quot;refused to execute a script in&quot;);
</span><del>-    message.append(&quot; '&quot;);
</del><ins>+    message.appendLiteral(&quot; '&quot;);
</ins><span class="cx">     message.append(xssInfo.m_originalURL);
</span><del>-    message.append(&quot;' because &quot;);
</del><ins>+    message.appendLiteral(&quot;' because &quot;);
</ins><span class="cx">     message.append(xssInfo.m_didBlockEntirePage ? &quot;the source code of a script&quot; : &quot;its source code&quot;);
</span><del>-    message.append(&quot; was found within the request.&quot;);
</del><ins>+    message.appendLiteral(&quot; was found within the request.&quot;);
</ins><span class="cx"> 
</span><span class="cx">     if (xssInfo.m_didSendCSPHeader)
</span><del>-        message.append(&quot; The server sent a 'Content-Security-Policy' header requesting this behavior.&quot;);
</del><ins>+        message.appendLiteral(&quot; The server sent a 'Content-Security-Policy' header requesting this behavior.&quot;);
</ins><span class="cx">     else if (xssInfo.m_didSendXSSProtectionHeader)
</span><del>-        message.append(&quot; The server sent an 'X-XSS-Protection' header requesting this behavior.&quot;);
</del><ins>+        message.appendLiteral(&quot; The server sent an 'X-XSS-Protection' header requesting this behavior.&quot;);
</ins><span class="cx">     else
</span><del>-        message.append(&quot; The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.&quot;);
</del><ins>+        message.appendLiteral(&quot; The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.&quot;);
</ins><span class="cx"> 
</span><span class="cx">     return message.toString();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackWebVTTParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/WebVTTParser.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/WebVTTParser.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/html/track/WebVTTParser.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -349,7 +349,7 @@
</span><span class="cx">         return recoverCue(line);
</span><span class="cx">     }
</span><span class="cx">     if (!m_currentContent.isEmpty())
</span><del>-        m_currentContent.append(&quot;\n&quot;);
</del><ins>+        m_currentContent.append('\n');
</ins><span class="cx">     m_currentContent.append(line);
</span><span class="cx"> 
</span><span class="cx">     return CueText;
</span></span></pre></div>
<a id="trunkSourceWebCoremathmlMathMLMencloseElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/mathml/MathMLMencloseElement.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/MathMLMencloseElement.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/mathml/MathMLMencloseElement.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -129,15 +129,13 @@
</span><span class="cx"> String MathMLMencloseElement::longDivLeftPadding() const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder padding;
</span><del>-    float fontSize = 0;
</del><span class="cx">     String closingBrace = &quot;)&quot;;
</span><span class="cx">     TextRun run(closingBrace.impl(), closingBrace.length());
</span><span class="cx">     Node* node = parentNode();
</span><span class="cx">     if (node &amp;&amp; node-&gt;renderer()) {
</span><span class="cx">         const Font&amp; font = node-&gt;renderer()-&gt;style().font();
</span><del>-        fontSize = font.width(run);
-        padding.append(String::number(fontSize));
-        padding.append(&quot;px&quot;);
</del><ins>+        padding.appendNumber(font.width(run));
+        padding.appendLiteral(&quot;px&quot;);
</ins><span class="cx">     }
</span><span class="cx">     return padding.toString();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorepagePageSerializercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/PageSerializer.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/PageSerializer.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/page/PageSerializer.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -136,9 +136,9 @@
</span><span class="cx">         MarkupAccumulator::appendElement(out, element, namespaces);
</span><span class="cx"> 
</span><span class="cx">     if (element.hasTagName(HTMLNames::headTag)) {
</span><del>-        out.append(&quot;&lt;meta charset=\&quot;&quot;);
</del><ins>+        out.appendLiteral(&quot;&lt;meta charset=\&quot;&quot;);
</ins><span class="cx">         out.append(m_document.charset());
</span><del>-        out.append(&quot;\&quot;&gt;&quot;);
</del><ins>+        out.appendLiteral(&quot;\&quot;&gt;&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // FIXME: For object (plugins) tags and video tag we could replace them by an image of their current contents.
</span></span></pre></div>
<a id="trunkSourceWebCorepageSecurityOrigincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/SecurityOrigin.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/SecurityOrigin.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/page/SecurityOrigin.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -477,7 +477,7 @@
</span><span class="cx">     StringBuilder result;
</span><span class="cx">     result.reserveCapacity(m_protocol.length() + m_host.length() + 10);
</span><span class="cx">     result.append(m_protocol);
</span><del>-    result.append(&quot;://&quot;);
</del><ins>+    result.appendLiteral(&quot;://&quot;);
</ins><span class="cx">     result.append(m_host);
</span><span class="cx"> 
</span><span class="cx">     if (m_port) {
</span></span></pre></div>
<a id="trunkSourceWebCorepagescrollingScrollingCoordinatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -395,15 +395,15 @@
</span><span class="cx">     StringBuilder stringBuilder;
</span><span class="cx"> 
</span><span class="cx">     if (reasons &amp; ScrollingCoordinator::ForcedOnMainThread)
</span><del>-        stringBuilder.append(&quot;Forced on main thread, &quot;);
</del><ins>+        stringBuilder.appendLiteral(&quot;Forced on main thread, &quot;);
</ins><span class="cx">     if (reasons &amp; ScrollingCoordinator::HasSlowRepaintObjects)
</span><del>-        stringBuilder.append(&quot;Has slow repaint objects, &quot;);
</del><ins>+        stringBuilder.appendLiteral(&quot;Has slow repaint objects, &quot;);
</ins><span class="cx">     if (reasons &amp; ScrollingCoordinator::HasViewportConstrainedObjectsWithoutSupportingFixedLayers)
</span><del>-        stringBuilder.append(&quot;Has viewport constrained objects without supporting fixed layers, &quot;);
</del><ins>+        stringBuilder.appendLiteral(&quot;Has viewport constrained objects without supporting fixed layers, &quot;);
</ins><span class="cx">     if (reasons &amp; ScrollingCoordinator::HasNonLayerViewportConstrainedObjects)
</span><del>-        stringBuilder.append(&quot;Has non-layer viewport-constrained objects, &quot;);
</del><ins>+        stringBuilder.appendLiteral(&quot;Has non-layer viewport-constrained objects, &quot;);
</ins><span class="cx">     if (reasons &amp; ScrollingCoordinator::IsImageDocument)
</span><del>-        stringBuilder.append(&quot;Is image document, &quot;);
</del><ins>+        stringBuilder.appendLiteral(&quot;Is image document, &quot;);
</ins><span class="cx"> 
</span><span class="cx">     if (stringBuilder.length())
</span><span class="cx">         stringBuilder.resize(stringBuilder.length() - 2);
</span></span></pre></div>
<a id="trunkSourceWebCorepagescrollingmacScrollingTreeFrameScrollingNodeMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -517,15 +517,15 @@
</span><span class="cx">         StringBuilder reasonsDescription;
</span><span class="cx"> 
</span><span class="cx">         if (synchronousScrollingReasons &amp; ScrollingCoordinator::ForcedOnMainThread)
</span><del>-            reasonsDescription.append(&quot;forced,&quot;);
</del><ins>+            reasonsDescription.appendLiteral(&quot;forced,&quot;);
</ins><span class="cx">         if (synchronousScrollingReasons &amp; ScrollingCoordinator::HasSlowRepaintObjects)
</span><del>-            reasonsDescription.append(&quot;slow-repaint objects,&quot;);
</del><ins>+            reasonsDescription.appendLiteral(&quot;slow-repaint objects,&quot;);
</ins><span class="cx">         if (synchronousScrollingReasons &amp; ScrollingCoordinator::HasViewportConstrainedObjectsWithoutSupportingFixedLayers)
</span><del>-            reasonsDescription.append(&quot;viewport-constrained objects,&quot;);
</del><ins>+            reasonsDescription.appendLiteral(&quot;viewport-constrained objects,&quot;);
</ins><span class="cx">         if (synchronousScrollingReasons &amp; ScrollingCoordinator::HasNonLayerViewportConstrainedObjects)
</span><del>-            reasonsDescription.append(&quot;non-layer viewport-constrained objects,&quot;);
</del><ins>+            reasonsDescription.appendLiteral(&quot;non-layer viewport-constrained objects,&quot;);
</ins><span class="cx">         if (synchronousScrollingReasons &amp; ScrollingCoordinator::IsImageDocument)
</span><del>-            reasonsDescription.append(&quot;image document,&quot;);
</del><ins>+            reasonsDescription.appendLiteral(&quot;image document,&quot;);
</ins><span class="cx"> 
</span><span class="cx">         // Strip the trailing comma.
</span><span class="cx">         String reasonsDescriptionTrimmed = reasonsDescription.toString().left(reasonsDescription.length() - 1);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformPODIntervalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/PODInterval.h (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/PODInterval.h        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/PODInterval.h        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx">         builder.append(ValueToString&lt;UserData&gt;::string(data()));
</span><span class="cx">         builder.append(&quot;, maxHigh=&quot;);
</span><span class="cx">         builder.append(ValueToString&lt;T&gt;::string(maxHigh()));
</span><del>-        builder.append(&quot;]&quot;);
</del><ins>+        builder.append(']');
</ins><span class="cx">         return builder.toString();
</span><span class="cx">     }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformPODRedBlackTreeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/PODRedBlackTree.h (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/PODRedBlackTree.h        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/PODRedBlackTree.h        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -792,10 +792,10 @@
</span><span class="cx">     {
</span><span class="cx">         StringBuilder builder;
</span><span class="cx">         for (int i = 0; i &lt; indentation; i++)
</span><del>-            builder.append(&quot; &quot;);
-        builder.append(&quot;-&quot;);
</del><ins>+            builder.append(' ');
+        builder.append('-');
</ins><span class="cx">         if (node) {
</span><del>-            builder.append(&quot; &quot;);
</del><ins>+            builder.append(' ');
</ins><span class="cx">             builder.append(ValueToString&lt;T&gt;::string(node-&gt;data()));
</span><span class="cx">             builder.append((node-&gt;color() == Black) ? &quot; (black)&quot; : &quot; (red)&quot;);
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformUUIDcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/UUID.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/UUID.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/UUID.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -46,14 +46,14 @@
</span><span class="cx">     StringBuilder builder;
</span><span class="cx">     builder.reserveCapacity(36);
</span><span class="cx">     appendUnsignedAsHexFixedSize(randomData[0], builder, 8, Lowercase);
</span><del>-    builder.append(&quot;-&quot;);
</del><ins>+    builder.append('-');
</ins><span class="cx">     appendUnsignedAsHexFixedSize(randomData[1] &gt;&gt; 16, builder, 4, Lowercase);
</span><del>-    builder.append(&quot;-4&quot;);
</del><ins>+    builder.appendLiteral(&quot;-4&quot;);
</ins><span class="cx">     appendUnsignedAsHexFixedSize(randomData[1] &amp; 0x00000fff, builder, 3, Lowercase);
</span><del>-    builder.append(&quot;-&quot;);
</del><ins>+    builder.append('-');
</ins><span class="cx">     appendUnsignedAsHexFixedSize((randomData[2] &gt;&gt; 30) | 0x8, builder, 1, Lowercase);
</span><span class="cx">     appendUnsignedAsHexFixedSize((randomData[2] &gt;&gt; 16) &amp; 0x00000fff, builder, 3, Lowercase);
</span><del>-    builder.append(&quot;-&quot;);
</del><ins>+    builder.append('-');
</ins><span class="cx">     appendUnsignedAsHexFixedSize(randomData[2] &amp; 0x0000ffff, builder, 4, Lowercase);
</span><span class="cx">     appendUnsignedAsHexFixedSize(randomData[3], builder, 8, Lowercase);
</span><span class="cx">     return builder.toString();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkProxyServercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/ProxyServer.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/ProxyServer.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/network/ProxyServer.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -34,14 +34,14 @@
</span><span class="cx"> {
</span><span class="cx">     switch (proxyServer.type()) {
</span><span class="cx">     case ProxyServer::Direct:
</span><del>-        builder.append(&quot;DIRECT&quot;);
</del><ins>+        builder.appendLiteral(&quot;DIRECT&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     case ProxyServer::HTTP:
</span><span class="cx">     case ProxyServer::HTTPS:
</span><del>-        builder.append(&quot;PROXY&quot;);
</del><ins>+        builder.appendLiteral(&quot;PROXY&quot;);
</ins><span class="cx">         break;
</span><span class="cx">     case ProxyServer::SOCKS:
</span><del>-        builder.append(&quot;SOCKS&quot;);
</del><ins>+        builder.appendLiteral(&quot;SOCKS&quot;);
</ins><span class="cx">         break;
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">     StringBuilder stringBuilder;
</span><span class="cx">     for (size_t i = 0; i &lt; proxyServers.size(); ++i) {
</span><span class="cx">         if (i)
</span><del>-            stringBuilder.append(&quot;; &quot;);
</del><ins>+            stringBuilder.appendLiteral(&quot;; &quot;);
</ins><span class="cx"> 
</span><span class="cx">         appendProxyServerString(stringBuilder, proxyServers[i]);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformtextDateTimeFormatcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/text/DateTimeFormat.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/text/DateTimeFormat.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/text/DateTimeFormat.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -257,9 +257,9 @@
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     if (literal.find('\'') == notFound) {
</span><del>-        buffer.append(&quot;'&quot;);
</del><ins>+        buffer.append('\'');
</ins><span class="cx">         buffer.append(literal);
</span><del>-        buffer.append(&quot;'&quot;);
</del><ins>+        buffer.append('\'');
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -268,10 +268,10 @@
</span><span class="cx">             buffer.append(&quot;''&quot;);
</span><span class="cx">         else {
</span><span class="cx">             String escaped = literal.substring(i);
</span><del>-            escaped.replace(ASCIILiteral(&quot;'&quot;), ASCIILiteral(&quot;''&quot;));
-            buffer.append(&quot;'&quot;);
</del><ins>+            escaped.replace('\'', &quot;''&quot;);
+            buffer.append('\'');
</ins><span class="cx">             buffer.append(escaped);
</span><del>-            buffer.append(&quot;'&quot;);
</del><ins>+            buffer.append('\'');
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformtextPlatformLocalecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/text/PlatformLocale.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/text/PlatformLocale.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/text/PlatformLocale.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx">     StringBuilder zeroPaddedStringBuilder;
</span><span class="cx">     zeroPaddedStringBuilder.reserveCapacity(width);
</span><span class="cx">     for (size_t i = string.length(); i &lt; width; ++i)
</span><del>-        zeroPaddedStringBuilder.append(&quot;0&quot;);
</del><ins>+        zeroPaddedStringBuilder.append('0');
</ins><span class="cx">     zeroPaddedStringBuilder.append(string);
</span><span class="cx">     return zeroPaddedStringBuilder.toString();
</span><span class="cx"> }
</span><span class="lines">@@ -311,7 +311,7 @@
</span><span class="cx">     StringBuilder builder;
</span><span class="cx">     builder.reserveCapacity(input.length());
</span><span class="cx">     if (isNegative)
</span><del>-        builder.append(&quot;-&quot;);
</del><ins>+        builder.append('-');
</ins><span class="cx">     for (unsigned i = startIndex; i &lt; endIndex;) {
</span><span class="cx">         unsigned symbolIndex = matchedDecimalSymbolIndex(input, i);
</span><span class="cx">         if (symbolIndex &gt;= DecimalSymbolsSize)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformtextTextStreamcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/text/TextStream.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/text/TextStream.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/platform/text/TextStream.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -91,13 +91,13 @@
</span><span class="cx"> 
</span><span class="cx"> TextStream&amp; TextStream::operator&lt;&lt;(float f)
</span><span class="cx"> {
</span><del>-    m_text.append(String::numberToStringFixedWidth(f, 2));
</del><ins>+    m_text.appendFixedWidthNumber(f, 2);
</ins><span class="cx">     return *this;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> TextStream&amp; TextStream::operator&lt;&lt;(double d)
</span><span class="cx"> {
</span><del>-    m_text.append(String::numberToStringFixedWidth(d, 2));
</del><ins>+    m_text.appendFixedWidthNumber(d, 2);
</ins><span class="cx">     return *this;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListMarkercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListMarker.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListMarker.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/rendering/RenderListMarker.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -644,7 +644,7 @@
</span><span class="cx">                 break;
</span><span class="cx">             }
</span><span class="cx">             if (value &lt; 0) {
</span><del>-                builder.append(&quot;-0&quot;);
</del><ins>+                builder.appendLiteral(&quot;-0&quot;);
</ins><span class="cx">                 builder.appendNumber(-value); // -01 to -09
</span><span class="cx">                 break;
</span><span class="cx">             }
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (173211 => 173212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2014-09-03 17:57:25 UTC (rev 173211)
+++ trunk/Source/WebCore/testing/Internals.cpp        2014-09-03 18:42:54 UTC (rev 173212)
</span><span class="lines">@@ -1213,25 +1213,25 @@
</span><span class="cx">     if (executable-&gt;isFunctionExecutable()) {
</span><span class="cx">         FunctionExecutable* funcExecutable = reinterpret_cast&lt;FunctionExecutable*&gt;(executable);
</span><span class="cx">         String inferredName = funcExecutable-&gt;inferredName().string();
</span><del>-        result.append(&quot;function \&quot;&quot;);
</del><ins>+        result.appendLiteral(&quot;function \&quot;&quot;);
</ins><span class="cx">         result.append(inferredName);
</span><del>-        result.append(&quot;\&quot;&quot;);
</del><ins>+        result.append('&quot;');
</ins><span class="cx">     } else if (executable-&gt;isEvalExecutable())
</span><del>-        result.append(&quot;eval&quot;);
</del><ins>+        result.appendLiteral(&quot;eval&quot;);
</ins><span class="cx">     else {
</span><span class="cx">         ASSERT(executable-&gt;isProgramExecutable());
</span><del>-        result.append(&quot;program&quot;);
</del><ins>+        result.appendLiteral(&quot;program&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    result.append(&quot; { &quot;);
</del><ins>+    result.appendLiteral(&quot; { &quot;);
</ins><span class="cx">     result.appendNumber(startLine);
</span><del>-    result.append(&quot;:&quot;);
</del><ins>+    result.append(':');
</ins><span class="cx">     result.appendNumber(startColumn);
</span><del>-    result.append(&quot; - &quot;);
</del><ins>+    result.appendLiteral(&quot; - &quot;);
</ins><span class="cx">     result.appendNumber(endLine);
</span><del>-    result.append(&quot;:&quot;);
</del><ins>+    result.append(':');
</ins><span class="cx">     result.appendNumber(endColumn);
</span><del>-    result.append(&quot; }&quot;);
</del><ins>+    result.appendLiteral(&quot; }&quot;);
</ins><span class="cx"> 
</span><span class="cx">     return result.toString();
</span><span class="cx"> }
</span><span class="lines">@@ -1996,22 +1996,22 @@
</span><span class="cx">     Cursor cursor = document-&gt;frame()-&gt;eventHandler().currentMouseCursor();
</span><span class="cx"> 
</span><span class="cx">     StringBuilder result;
</span><del>-    result.append(&quot;type=&quot;);
</del><ins>+    result.appendLiteral(&quot;type=&quot;);
</ins><span class="cx">     result.append(cursorTypeToString(cursor.type()));
</span><del>-    result.append(&quot; hotSpot=&quot;);
</del><ins>+    result.appendLiteral(&quot; hotSpot=&quot;);
</ins><span class="cx">     result.appendNumber(cursor.hotSpot().x());
</span><del>-    result.append(&quot;,&quot;);
</del><ins>+    result.append(',');
</ins><span class="cx">     result.appendNumber(cursor.hotSpot().y());
</span><span class="cx">     if (cursor.image()) {
</span><span class="cx">         FloatSize size = cursor.image()-&gt;size();
</span><del>-        result.append(&quot; image=&quot;);
</del><ins>+        result.appendLiteral(&quot; image=&quot;);
</ins><span class="cx">         result.appendNumber(size.width());
</span><del>-        result.append(&quot;x&quot;);
</del><ins>+        result.append('x');
</ins><span class="cx">         result.appendNumber(size.height());
</span><span class="cx">     }
</span><span class="cx"> #if ENABLE(MOUSE_CURSOR_SCALE)
</span><span class="cx">     if (cursor.imageScaleFactor() != 1) {
</span><del>-        result.append(&quot; scale=&quot;);
</del><ins>+        result.appendLiteral(&quot; scale=&quot;);
</ins><span class="cx">         NumberToStringBuffer buffer;
</span><span class="cx">         result.append(numberToFixedPrecisionString(cursor.imageScaleFactor(), 8, buffer, true));
</span><span class="cx">     }
</span></span></pre>
</div>
</div>

</body>
</html>