Changeset 86542 in webkit
- Timestamp:
- May 16, 2011 12:56:06 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86539 r86542 1 2011-05-16 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Reviewed by Dirk Schulze. 4 5 Replace direct StringConcatenate usage, by using operator+ (again) 6 https://bugs.webkit.org/show_bug.cgi?id=60700 7 8 Remove makeString() usage everywhere, instead directly use operator+. 9 10 * accessibility/AccessibilityObject.cpp: 11 (WebCore::AccessibilityObject::listMarkerTextForNodeAndPosition): 12 * bindings/js/JSDOMWindowBase.cpp: 13 * bindings/js/ScriptDebugServer.cpp: 14 (WebCore::ScriptDebugServer::setBreakpoint): 15 * bindings/v8/V8Proxy.cpp: 16 (WebCore::V8Proxy::reportUnsafeAccessTo): 17 * css/CSSMutableStyleDeclaration.cpp: 18 (WebCore::CSSMutableStyleDeclaration::borderSpacingValue): 19 * dom/ExceptionBase.cpp: 20 (WebCore::ExceptionBase::ExceptionBase): 21 * dom/XMLDocumentParser.cpp: 22 (WebCore::XMLDocumentParser::handleError): 23 * html/FTPDirectoryDocument.cpp: 24 (WebCore::processFileDateString): 25 * inspector/CodeGeneratorInspector.pm: 26 * inspector/InspectorConsoleAgent.cpp: 27 (WebCore::InspectorConsoleAgent::count): 28 (WebCore::InspectorConsoleAgent::didReceiveResponse): 29 * inspector/InspectorDOMAgent.cpp: 30 * inspector/InspectorDOMDebuggerAgent.cpp: 31 (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded): 32 * inspector/InspectorDebuggerAgent.cpp: 33 (WebCore::InspectorDebuggerAgent::setBreakpointByUrl): 34 (WebCore::InspectorDebuggerAgent::setBreakpoint): 35 * loader/FrameLoader.cpp: 36 (WebCore::FrameLoader::checkIfDisplayInsecureContent): 37 (WebCore::FrameLoader::checkIfRunInsecureContent): 38 (WebCore::FrameLoader::shouldAllowNavigation): 39 * loader/archive/cf/LegacyWebArchive.cpp: 40 (WebCore::LegacyWebArchive::createFromSelection): 41 * loader/cache/CachedResourceLoader.cpp: 42 (WebCore::CachedResourceLoader::printAccessDeniedMessage): 43 * page/ContentSecurityPolicy.cpp: 44 (WebCore::CSPDirective::CSPDirective): 45 (WebCore::ContentSecurityPolicy::checkSourceAndReportViolation): 46 * page/DOMWindow.cpp: 47 (WebCore::DOMWindow::postMessageTimerFired): 48 (WebCore::DOMWindow::crossDomainAccessErrorMessage): 49 * page/PageSerializer.cpp: 50 (WebCore::SerializerMarkupAccumulator::SerializerMarkupAccumulator): 51 (WebCore::SerializerMarkupAccumulator::appendElement): 52 (WebCore::PageSerializer::urlForBlankFrame): 53 * page/PrintContext.cpp: 54 (WebCore::PrintContext::pageProperty): 55 (WebCore::PrintContext::pageSizeAndMarginsInPixels): 56 * platform/efl/PlatformKeyboardEventEfl.cpp: 57 (WebCore::createKeyMap): 58 (WebCore::createWindowsKeyMap): 59 * platform/efl/RenderThemeEfl.cpp: 60 (WebCore::RenderThemeEfl::formatMediaControlsCurrentTime): 61 * platform/graphics/GraphicsLayer.cpp: 62 (WebCore::GraphicsLayer::animationNameForTransition): 63 * platform/graphics/brew/ImageBrew.cpp: 64 (WebCore::Image::loadPlatformResource): 65 * platform/graphics/ca/GraphicsLayerCA.cpp: 66 (WebCore::animationIdentifier): 67 * platform/graphics/cg/ImageBufferCG.cpp: 68 (WebCore::CGImageToDataURL): 69 * platform/graphics/gtk/ImageBufferGtk.cpp: 70 (WebCore::ImageBuffer::toDataURL): 71 * platform/graphics/haiku/ImageBufferHaiku.cpp: 72 (WebCore::ImageBuffer::toDataURL): 73 * platform/graphics/qt/ImageBufferQt.cpp: 74 (WebCore::ImageBuffer::toDataURL): 75 * platform/graphics/skia/ImageBufferSkia.cpp: 76 (WebCore::ImageToDataURL): 77 * platform/network/CredentialStorage.cpp: 78 (WebCore::originStringFromURL): 79 * platform/network/cf/SocketStreamHandleCFNet.cpp: 80 (WebCore::SocketStreamHandle::reportErrorToClient): 81 * platform/sql/SQLiteDatabase.cpp: 82 (WebCore::SQLiteDatabase::setSynchronous): 83 * platform/text/wince/TextCodecWinCE.cpp: 84 (WebCore::LanguageManager::LanguageManager): 85 * platform/win/ClipboardUtilitiesWin.cpp: 86 * platform/win/ClipboardWin.cpp: 87 (WebCore::ClipboardWin::writeURL): 88 * platform/win/FileSystemWin.cpp: 89 (WebCore::listDirectory): 90 * platform/win/LanguageWin.cpp: 91 (WebCore::platformDefaultLanguage): 92 * platform/win/PathWalker.cpp: 93 (WebCore::PathWalker::PathWalker): 94 * platform/win/SystemInfo.cpp: 95 (WebCore::osVersionForUAString): 96 (WebCore::windowsVersionForUAString): 97 * plugins/PluginStream.cpp: 98 (WebCore::PluginStream::startStream): 99 * svg/SVGAngle.cpp: 100 (WebCore::SVGAngle::valueAsString): 101 * svg/SVGLength.cpp: 102 (WebCore::SVGLength::valueAsString): 103 * svg/SVGPaint.cpp: 104 (WebCore::SVGPaint::cssText): 105 * svg/SVGPointList.cpp: 106 (WebCore::SVGPointList::valueAsString): 107 * svg/SVGPreserveAspectRatio.cpp: 108 (WebCore::SVGPreserveAspectRatio::valueAsString): 109 * svg/SVGTransform.cpp: 110 (WebCore::SVGTransform::valueAsString): 111 * svg/SVGTransformList.cpp: 112 * svg/SVGUseElement.cpp: 113 (WebCore::dumpInstanceTree): 114 * websockets/WebSocket.cpp: 115 (WebCore::WebSocket::connect): 116 * websockets/WebSocketChannel.cpp: 117 (WebCore::WebSocketChannel::didFail): 118 (WebCore::WebSocketChannel::appendToBuffer): 119 * websockets/WebSocketHandshake.cpp: 120 (WebCore::WebSocketHandshake::readServerHandshake): 121 1 122 2011-05-12 Yury Semikhatsky <yurys@chromium.org> 2 123 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r86325 r86542 55 55 #include <wtf/StdLibExtras.h> 56 56 #include <wtf/text/StringBuilder.h> 57 #include <wtf/text/ StringConcatenate.h>57 #include <wtf/text/WTFString.h> 58 58 #include <wtf/unicode/CharacterNames.h> 59 59 … … 434 434 // FIXME: Not all list marker styles are followed by a period, but this 435 435 // sounds much better when there is a synthesized pause because of a period. 436 return ma keString(markerText, ". ");436 return markerText + ". "; 437 437 } 438 438 -
trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
r84371 r86542 37 37 #include "WebCoreJSClientData.h" 38 38 #include <wtf/Threading.h> 39 #include <wtf/text/StringConcatenate.h>40 39 41 40 using namespace JSC; -
trunk/Source/WebCore/bindings/js/ScriptDebugServer.cpp
r85442 r86542 44 44 #include <runtime/JSLock.h> 45 45 #include <wtf/MainThread.h> 46 #include <wtf/text/ StringConcatenate.h>46 #include <wtf/text/WTFString.h> 47 47 48 48 using namespace JSC; … … 81 81 // FIXME(WK53003): implement setting breakpoints by line:column. 82 82 *actualColumnNumber = 0; 83 return makeString(sourceID, ":", String::number(scriptBreakpoint.lineNumber));83 return sourceID + ":" + String::number(scriptBreakpoint.lineNumber); 84 84 } 85 85 -
trunk/Source/WebCore/bindings/v8/V8Proxy.cpp
r86251 r86542 84 84 #include <wtf/StringExtras.h> 85 85 #include <wtf/UnusedParam.h> 86 #include <wtf/text/ StringConcatenate.h>86 #include <wtf/text/WTFString.h> 87 87 88 88 namespace WebCore { … … 168 168 // FIXME: This error message should contain more specifics of why the same 169 169 // origin check has failed. 170 String str = makeString("Unsafe JavaScript attempt to access frame with URL ", targetDocument->url().string(),171 " from frame with URL ", sourceDocument->url().string(), ". Domains, protocols and ports must match.\n");170 String str = "Unsafe JavaScript attempt to access frame with URL " + targetDocument->url().string() + 171 " from frame with URL " + sourceDocument->url().string() + ". Domains, protocols and ports must match.\n"; 172 172 173 173 // Build a console message with fake source ID and line number. -
trunk/Source/WebCore/css/CSSMutableStyleDeclaration.cpp
r85585 r86542 36 36 #include "InspectorInstrumentation.h" 37 37 #include "StyledElement.h" 38 #include <wtf/text/ StringConcatenate.h>38 #include <wtf/text/WTFString.h> 39 39 40 40 using namespace std; … … 291 291 if (horizontalValueCSSText == verticalValueCSSText) 292 292 return horizontalValueCSSText; 293 return makeString(horizontalValueCSSText, ' ', verticalValueCSSText);293 return horizontalValueCSSText + ' ' + verticalValueCSSText; 294 294 } 295 295 -
trunk/Source/WebCore/dom/ExceptionBase.cpp
r86135 r86542 31 31 #include "ExceptionCode.h" 32 32 33 #include <wtf/text/ StringConcatenate.h>33 #include <wtf/text/WTFString.h> 34 34 35 35 namespace WebCore { … … 41 41 { 42 42 if (description.name) 43 m_message = makeString(description.name, ": ", description.typeName, " Exception ", String::number(description.code));43 m_message = String(description.name) + ": " + description.typeName + " Exception " + String::number(description.code); 44 44 else 45 m_message = makeString(description.typeName, " Exception ", String::number(description.code));45 m_message = String(description.typeName) + " Exception " + String::number(description.code); 46 46 } 47 47 -
trunk/Source/WebCore/dom/XMLDocumentParser.cpp
r85256 r86542 51 51 #include "TextResourceDecoder.h" 52 52 #include "TreeDepthLimit.h" 53 #include <wtf/text/ StringConcatenate.h>53 #include <wtf/text/WTFString.h> 54 54 #include <wtf/StringExtras.h> 55 55 #include <wtf/Threading.h> … … 145 145 switch (type) { 146 146 case warning: 147 m_errorMessages += makeString("warning on line ", String::number(position.m_line.oneBasedInt()), " at column ", String::number(position.m_column.oneBasedInt()), ": ", m);147 m_errorMessages += "warning on line " + String::number(position.m_line.oneBasedInt()) + " at column " + String::number(position.m_column.oneBasedInt()) + ": " + m; 148 148 break; 149 149 case fatal: 150 150 case nonFatal: 151 m_errorMessages += makeString("error on line ", String::number(position.m_line.oneBasedInt()), " at column ", String::number(position.m_column.oneBasedInt()), ": ", m);151 m_errorMessages += "error on line " + String::number(position.m_line.oneBasedInt()) + " at column " + String::number(position.m_column.oneBasedInt()) + ": " + m; 152 152 } 153 153 -
trunk/Source/WebCore/html/FTPDirectoryDocument.cpp
r77062 r86542 38 38 #include "Text.h" 39 39 #include <wtf/text/CString.h> 40 #include <wtf/text/ StringConcatenate.h>40 #include <wtf/text/WTFString.h> 41 41 #include <wtf/CurrentTime.h> 42 42 #include <wtf/StdLibExtras.h> … … 254 254 255 255 if (fileTime.tm_year > -1) 256 dateString = m akeString(months[month], ' ', String::number(fileTime.tm_mday), ", ", String::number(fileTime.tm_year));256 dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(fileTime.tm_year); 257 257 else 258 dateString = m akeString(months[month], ' ', String::number(fileTime.tm_mday), ", ", String::number(now.tm_year));258 dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(now.tm_year); 259 259 260 260 return dateString + timeOfDay; -
trunk/Source/WebCore/inspector/CodeGeneratorInspector.pm
r86507 r86542 651 651 HashMap<String, CallHandler>::iterator it = dispatchMap.find(method); 652 652 if (it == dispatchMap.end()) { 653 reportProtocolError(&callId, MethodNotFound, makeString("Invalid method name was received. '", method, "' wasn't found."));653 reportProtocolError(&callId, MethodNotFound, "Invalid method name was received. '" + method + "' wasn't found."); 654 654 return; 655 655 } … … 962 962 push(@sourceContent, "\n#include \"config.h\""); 963 963 push(@sourceContent, "#include \"$className.h\""); 964 push(@sourceContent, "#include <wtf/text/ StringConcatenate.h>");964 push(@sourceContent, "#include <wtf/text/WTFString.h>"); 965 965 push(@sourceContent, "#include <wtf/text/CString.h>"); 966 966 push(@sourceContent, ""); -
trunk/Source/WebCore/inspector/InspectorConsoleAgent.cpp
r85094 r86542 45 45 #include <wtf/OwnPtr.h> 46 46 #include <wtf/PassOwnPtr.h> 47 #include <wtf/text/ StringConcatenate.h>47 #include <wtf/text/WTFString.h> 48 48 49 49 namespace WebCore { … … 176 176 String title; 177 177 arguments->getFirstArgumentAsString(title); 178 String identifier = makeString(title, '@', lastCaller.sourceURL(), ':', String::number(lastCaller.lineNumber()));178 String identifier = title + '@' + lastCaller.sourceURL() + ':' + String::number(lastCaller.lineNumber()); 179 179 180 180 HashMap<String, unsigned>::iterator it = m_counts.find(identifier); … … 189 189 m_counts.add(identifier, count); 190 190 191 String message = makeString(title, ": ", String::number(count));191 String message = title + ": " + String::number(count); 192 192 addMessageToConsole(JSMessageSource, LogMessageType, LogMessageLevel, message, lastCaller.lineNumber(), lastCaller.sourceURL()); 193 193 } … … 207 207 208 208 if (response.httpStatusCode() >= 400) { 209 String message = makeString("Failed to load resource: the server responded with a status of ", String::number(response.httpStatusCode()), " (", response.httpStatusText(), ')');209 String message = "Failed to load resource: the server responded with a status of " + String::number(response.httpStatusCode()) + " (" + response.httpStatusText() + ')'; 210 210 addConsoleMessage(adoptPtr(new ConsoleMessage(OtherMessageSource, NetworkErrorMessageType, ErrorMessageLevel, message, response.url().string(), identifier))); 211 211 } -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r85751 r86542 73 73 #include "Page.h" 74 74 #include "Pasteboard.h" 75 #include "PlatformString.h"76 75 #include "RenderStyle.h" 77 76 #include "RenderStyleConstants.h" … … 88 87 89 88 #include <wtf/text/CString.h> 90 #include <wtf/text/ StringConcatenate.h>89 #include <wtf/text/WTFString.h> 91 90 #include <wtf/HashSet.h> 92 91 #include <wtf/ListHashSet.h> 93 92 #include <wtf/OwnPtr.h> 94 93 #include <wtf/Vector.h> 95 #include <wtf/text/AtomicString.h>96 94 97 95 namespace WebCore { -
trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.cpp
r85850 r86542 42 42 #include "InspectorValues.h" 43 43 #include "InstrumentingAgents.h" 44 #include <wtf/text/ StringConcatenate.h>44 #include <wtf/text/WTFString.h> 45 45 46 46 namespace { … … 312 312 return; 313 313 314 String fullEventName = makeString(categoryType, ":", eventName);314 String fullEventName = categoryType + ':' + eventName; 315 315 RefPtr<InspectorObject> eventListenerBreakpoints = m_inspectorState->getObject(DOMDebuggerAgentState::eventListenerBreakpoints); 316 316 if (eventListenerBreakpoints->find(fullEventName) == eventListenerBreakpoints->end()) -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.cpp
r85320 r86542 38 38 #include "InspectorValues.h" 39 39 #include "InstrumentingAgents.h" 40 #include "PlatformString.h"41 40 #include "ScriptDebugServer.h" 42 41 #include "ScriptObject.h" 43 #include <wtf/text/ StringConcatenate.h>42 #include <wtf/text/WTFString.h> 44 43 45 44 namespace WebCore { … … 158 157 String condition = optionalCondition ? *optionalCondition : ""; 159 158 160 String breakpointId = makeString(url, ":", String::number(lineNumber), ":", String::number(columnNumber));159 String breakpointId = url + ':' + String::number(lineNumber) + ':' + String::number(columnNumber); 161 160 RefPtr<InspectorObject> breakpointsCookie = m_inspectorState->getObject(DebuggerAgentState::javaScriptBreakpoints); 162 161 if (breakpointsCookie->find(breakpointId) != breakpointsCookie->end()) … … 197 196 return; 198 197 199 String condition = optionalCondition ? *optionalCondition : "";200 201 String breakpointId = makeString(sourceId, ":", String::number(lineNumber), ":", String::number(columnNumber));198 String condition = optionalCondition ? *optionalCondition : emptyString(); 199 200 String breakpointId = sourceId + ':' + String::number(lineNumber) + ':' + String::number(columnNumber); 202 201 if (m_breakpointIdToDebugServerBreakpointIds.find(breakpointId) != m_breakpointIdToDebugServerBreakpointIds.end()) 203 202 return; -
trunk/Source/WebCore/loader/FrameLoader.cpp
r86279 r86542 101 101 #include <wtf/StdLibExtras.h> 102 102 #include <wtf/text/CString.h> 103 #include <wtf/text/ StringConcatenate.h>103 #include <wtf/text/WTFString.h> 104 104 105 105 #if ENABLE(SHARED_WORKERS) … … 1116 1116 Settings* settings = m_frame->settings(); 1117 1117 bool allowed = settings && settings->allowDisplayOfInsecureContent(); 1118 String message = makeString((allowed ? "" : "[blocked] "), "The page at ", m_frame->document()->url().string(), " displayed insecure content from ", url.string(), ".\n");1118 String message = (allowed ? emptyString() : "[blocked] ") + "The page at " + m_frame->document()->url().string() + " displayed insecure content from " + url.string() + ".\n"; 1119 1119 m_frame->domWindow()->console()->addMessage(HTMLMessageSource, LogMessageType, WarningMessageLevel, message, 1, String()); 1120 1120 … … 1130 1130 Settings* settings = m_frame->settings(); 1131 1131 bool allowed = settings && settings->allowRunningOfInsecureContent(); 1132 String message = makeString((allowed ? "" : "[blocked] "), "The page at ", m_frame->document()->url().string(), " ran insecure content from ", url.string(), ".\n");1132 String message = (allowed ? emptyString() : "[blocked] ") + "The page at " + m_frame->document()->url().string() + " ran insecure content from " + url.string() + ".\n"; 1133 1133 m_frame->domWindow()->console()->addMessage(HTMLMessageSource, LogMessageType, WarningMessageLevel, message, 1, String()); 1134 1134 … … 1764 1764 Document* targetDocument = targetFrame->document(); 1765 1765 // FIXME: this error message should contain more specifics of why the navigation change is not allowed. 1766 String message = makeString("Unsafe JavaScript attempt to initiate a navigation change for frame with URL ",1767 targetDocument->url().string(), " from frame with URL ", activeDocument->url().string(), ".\n");1766 String message = "Unsafe JavaScript attempt to initiate a navigation change for frame with URL " + 1767 targetDocument->url().string() + " from frame with URL " + activeDocument->url().string() + ".\n"; 1768 1768 1769 1769 // FIXME: should we print to the console of the activeFrame as well? -
trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
r85864 r86542 48 48 #include "SharedBuffer.h" 49 49 #include <wtf/text/CString.h> 50 #include <wtf/text/ StringConcatenate.h>50 #include <wtf/text/WTFString.h> 51 51 #include <wtf/ListHashSet.h> 52 52 #include <wtf/RetainPtr.h> … … 575 575 // Wrap the frameset document in an iframe so it can be pasted into 576 576 // another document (which will have a body or frameset of its own). 577 String iframeMarkup = makeString("<iframe frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\" width=\"98%%\" height=\"98%%\" src=\"",578 frame->loader()->documentLoader()->response().url().string(), "\"></iframe>");577 String iframeMarkup = "<iframe frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\" width=\"98%%\" height=\"98%%\" src=\"" + 578 frame->loader()->documentLoader()->response().url().string() + "\"></iframe>"; 579 579 RefPtr<ArchiveResource> iframeResource = ArchiveResource::create(utf8Buffer(iframeMarkup), blankURL(), "text/html", "UTF-8", String()); 580 580 -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r85378 r86542 50 50 #include <wtf/UnusedParam.h> 51 51 #include <wtf/text/CString.h> 52 #include <wtf/text/ StringConcatenate.h>52 #include <wtf/text/WTFString.h> 53 53 54 54 #define PRELOAD_DEBUG 0 … … 490 490 return; 491 491 492 String message = m_document->url().isNull() ? 493 makeString("Unsafe attempt to load URL ", url.string(), '.') : 494 makeString("Unsafe attempt to load URL ", url.string(), " from frame with URL ", m_document->url().string(), ". Domains, protocols and ports must match.\n"); 492 String message; 493 if (m_document->url().isNull()) 494 message = "Unsafe attempt to load URL " + url.string() + '.'; 495 else 496 message = "Unsafe attempt to load URL " + url.string() + " from frame with URL " + m_document->url().string() + ". Domains, protocols and ports must match.\n"; 495 497 496 498 // FIXME: provide a real line number and source URL. -
trunk/Source/WebCore/page/ContentSecurityPolicy.cpp
r86251 r86542 36 36 #include "SecurityOrigin.h" 37 37 #include "TextEncoding.h" 38 #include <wtf/text/ StringConcatenate.h>38 #include <wtf/text/WTFString.h> 39 39 40 40 namespace WebCore { … … 433 433 CSPDirective(const String& name, const String& value, SecurityOrigin* origin) 434 434 : m_sourceList(origin) 435 , m_text( makeString(name, " ", value))435 , m_text(name + ' ' + value) 436 436 { 437 437 m_sourceList.parse(value); … … 551 551 if (!directive || directive->allows(url)) 552 552 return true; 553 reportViolation(directive->text(), makeString("Refused to load ", type, " from '", url.string(), "' because of Content-Security-Policy.\n"));553 reportViolation(directive->text(), "Refused to load " + type + " from '" + url.string() + "' because of Content-Security-Policy.\n"); 554 554 return denyIfEnforcingPolicy(); 555 555 } -
trunk/Source/WebCore/page/DOMWindow.cpp
r86458 r86542 80 80 #include "Performance.h" 81 81 #include "PlatformScreen.h" 82 #include "PlatformString.h"83 82 #include "ScheduledAction.h" 84 83 #include "Screen.h" … … 97 96 #include <wtf/CurrentTime.h> 98 97 #include <wtf/MathExtras.h> 99 #include <wtf/text/ StringConcatenate.h>98 #include <wtf/text/WTFString.h> 100 99 101 100 #if ENABLE(FILE_SYSTEM) … … 848 847 // Check target origin now since the target document may have changed since the simer was scheduled. 849 848 if (!timer->targetOrigin()->isSameSchemeHostPort(document()->securityOrigin())) { 850 String message = makeString("Unable to post message to ", timer->targetOrigin()->toString(),851 ". Recipient has origin ", document()->securityOrigin()->toString(), ".\n");849 String message = "Unable to post message to " + timer->targetOrigin()->toString() + 850 ". Recipient has origin " + document()->securityOrigin()->toString() + ".\n"; 852 851 console()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, message, 0, String()); 853 852 return; … … 1700 1699 // Perhaps we should involve the security origin object in composing it. 1701 1700 // FIXME: This message, and other console messages, have extra newlines. Should remove them. 1702 return makeString("Unsafe JavaScript attempt to access frame with URL ", m_url.string(), 1703 " from frame with URL ", activeWindowURL.string(), ". Domains, protocols and ports must match.\n"); 1701 return "Unsafe JavaScript attempt to access frame with URL " + m_url.string() + " from frame with URL " + activeWindowURL.string() + ". Domains, protocols and ports must match.\n"; 1704 1702 } 1705 1703 -
trunk/Source/WebCore/page/PageSerializer.cpp
r85244 r86542 56 56 #include "TextEncoding.h" 57 57 #include <wtf/text/StringBuilder.h> 58 #include <wtf/text/ StringConcatenate.h>58 #include <wtf/text/WTFString.h> 59 59 60 60 namespace WebCore { … … 113 113 // MarkupAccumulator does not serialize the <?xml ... line, so we add it explicitely to ensure the right encoding is specified. 114 114 if (m_document->isXHTMLDocument() || m_document->xmlStandalone() || m_document->isSVGDocument()) 115 appendString( makeString("<?xml version=\"", m_document->xmlVersion(), "\" encoding=\"", m_document->charset(), "\"?>"));115 appendString("<?xml version=\"" + m_document->xmlVersion() + "\" encoding=\"" + m_document->charset() + "\"?>"); 116 116 } 117 117 … … 133 133 134 134 if (element->hasTagName(HTMLNames::headTag)) { 135 String meta = makeString("<meta charset=\"", m_document->charset(), "\">");135 String meta = "<meta charset=\"" + m_document->charset() + "\">"; 136 136 out.append(meta.characters(), meta.length()); 137 137 } … … 341 341 if (iter != m_blankFrameURLs.end()) 342 342 return iter->second; 343 String url = makeString("wyciwyg://frame/", String::number(m_blankFrameCounter++));343 String url = "wyciwyg://frame/" + String::number(m_blankFrameCounter++); 344 344 KURL fakeURL(ParsedURLString, url); 345 345 m_blankFrameURLs.add(frame, fakeURL); -
trunk/Source/WebCore/page/PrintContext.cpp
r86451 r86542 27 27 #include "RenderLayer.h" 28 28 #include "RenderView.h" 29 #include <wtf/text/ StringConcatenate.h>29 #include <wtf/text/WTFString.h> 30 30 31 31 namespace WebCore { … … 292 292 return style->fontDescription().family().family().string(); 293 293 if (!strcmp(propertyName, "size")) 294 return makeString(String::number(style->pageSize().width().value()), ' ', String::number(style->pageSize().height().value()));295 296 return makeString("pageProperty() unimplemented for: ", propertyName);294 return String::number(style->pageSize().width().value()) + ' ' + String::number(style->pageSize().height().value()); 295 296 return String("pageProperty() unimplemented for: ") + propertyName; 297 297 } 298 298 … … 307 307 frame->document()->pageSizeAndMarginsInPixels(pageNumber, pageSize, marginTop, marginRight, marginBottom, marginLeft); 308 308 309 // We don't have a makeString() function that takes up to 12 arguments, if this is a hot function, we can provide one. 310 return makeString('(', String::number(pageSize.width()), ", ", String::number(pageSize.height()), ") ") + 311 makeString(String::number(marginTop), ' ', String::number(marginRight), ' ', String::number(marginBottom), ' ', String::number(marginLeft)); 309 return "(" + String::number(pageSize.width()) + ", " + String::number(pageSize.height()) + ") " + 310 String::number(marginTop) + ' ' + String::number(marginRight) + ' ' + String::number(marginBottom) + ' ' + String::number(marginLeft); 312 311 } 313 312 -
trunk/Source/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp
r80543 r86542 40 40 #include <stdio.h> 41 41 #include <wtf/HashMap.h> 42 #include <wtf/text/ StringConcatenate.h>42 #include <wtf/text/WTFString.h> 43 43 #include <wtf/text/StringHash.h> 44 44 … … 54 54 { 55 55 for (unsigned int i = 1; i < 25; i++) { 56 String key = makeString('F', String::number(i));56 String key = "F" + String::number(i); 57 57 gKeyMap.set(key, key); 58 58 } … … 162 162 // F_XX 163 163 for (unsigned int i = 1; i < 25; i++) { 164 String key = makeString('F', String::number(i));164 String key = "F" + String::number(i); 165 165 gWindowsKeyMap.set(key, VK_F1 + i); 166 166 } -
trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp
r85643 r86542 42 42 #include "UserAgentStyleSheets.h" 43 43 #include <wtf/text/CString.h> 44 #include <wtf/text/ StringConcatenate.h>44 #include <wtf/text/WTFString.h> 45 45 46 46 #include <Ecore_Evas.h> … … 1103 1103 String RenderThemeEfl::formatMediaControlsCurrentTime(float currentTime, float duration) const 1104 1104 { 1105 return makeString(formatMediaControlsTime(currentTime), " / ", formatMediaControlsTime(duration));1105 return formatMediaControlsTime(currentTime) + " / " + formatMediaControlsTime(duration); 1106 1106 } 1107 1107 -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp
r78590 r86542 34 34 #include "TextStream.h" 35 35 #include <wtf/text/CString.h> 36 #include <wtf/text/ StringConcatenate.h>36 #include <wtf/text/WTFString.h> 37 37 38 38 #ifndef NDEBUG … … 252 252 { 253 253 // | is not a valid identifier character in CSS, so this can never conflict with a keyframe identifier. 254 return makeString("-|transition", static_cast<char>(property), '-');254 return "-|transition" + static_cast<char>(property) + '-'; 255 255 } 256 256 -
trunk/Source/WebCore/platform/graphics/brew/ImageBrew.cpp
r69798 r86542 37 37 38 38 #include <wtf/text/CString.h> 39 #include <wtf/text/ StringConcatenate.h>39 #include <wtf/text/WTFString.h> 40 40 41 41 namespace WebCore { … … 43 43 PassRefPtr<Image> Image::loadPlatformResource(const char *name) 44 44 { 45 String resourcePath = makeString(homeDirectoryPath(), "res/", name, ".png");45 String resourcePath = homeDirectoryPath() + "res/" + name + ".png"; 46 46 47 47 RefPtr<SharedBuffer> buffer = SharedBuffer::createWithContentsOfFile(resourcePath.utf8().data()); -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r86051 r86542 34 34 #include "FloatRect.h" 35 35 #include "PlatformCALayer.h" 36 #include "PlatformString.h"37 36 #include "RotateTransformOperation.h" 38 37 #include "ScaleTransformOperation.h" … … 42 41 #include <limits.h> 43 42 #include <wtf/CurrentTime.h> 44 #include <wtf/text/ StringConcatenate.h>43 #include <wtf/text/WTFString.h> 45 44 46 45 #if PLATFORM(MAC) … … 225 224 static String animationIdentifier(const String& animationName, AnimatedPropertyID property, int index) 226 225 { 227 return makeString(animationName, '_', String::number(property), '_', String::number(index));226 return animationName + '_' + String::number(property) + '_' + String::number(index); 228 227 } 229 228 -
trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
r85501 r86542 37 37 #include <ApplicationServices/ApplicationServices.h> 38 38 #include <wtf/Assertions.h> 39 #include <wtf/text/ StringConcatenate.h>39 #include <wtf/text/WTFString.h> 40 40 #include <wtf/OwnArrayPtr.h> 41 41 #include <wtf/RetainPtr.h> … … 345 345 base64Encode(reinterpret_cast<const char*>(CFDataGetBytePtr(data.get())), CFDataGetLength(data.get()), out); 346 346 347 return makeString("data:", mimeType, ";base64,", out);347 return "data:" + mimeType + ";base64," + out; 348 348 } 349 349 -
trunk/Source/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp
r80546 r86542 29 29 #include <gtk/gtk.h> 30 30 #include <wtf/text/CString.h> 31 #include <wtf/text/ StringConcatenate.h>31 #include <wtf/text/WTFString.h> 32 32 33 33 namespace WebCore { … … 68 68 base64Encode(reinterpret_cast<const char*>(buffer.get()), bufferSize, out); 69 69 70 return makeString("data:", mimeType, ";base64,", out);70 return "data:" + mimeType + ";base64," + out; 71 71 } 72 72 -
trunk/Source/WebCore/platform/graphics/haiku/ImageBufferHaiku.cpp
r76371 r86542 34 34 #include "StillImageHaiku.h" 35 35 #include <wtf/text/CString.h> 36 #include <wtf/text/ StringConcatenate.h>36 #include <wtf/text/WTFString.h> 37 37 #include <BitmapStream.h> 38 38 #include <String.h> … … 374 374 translatedStream.BufferLength(), encodedBuffer); 375 375 376 return makeString("data:", mimeType, ";base64,", encodedBuffer);376 return "data:" + mimeType + ";base64," + encodedBuffer; 377 377 } 378 378 -
trunk/Source/WebCore/platform/graphics/qt/ImageBufferQt.cpp
r85343 r86542 36 36 #include "TransparencyLayer.h" 37 37 #include <wtf/text/CString.h> 38 #include <wtf/text/ StringConcatenate.h>38 #include <wtf/text/WTFString.h> 39 39 40 40 #include <QBuffer> … … 422 422 buffer.close(); 423 423 424 return makeString("data:", mimeType, ";base64,", data.toBase64().data());425 } 426 427 } 424 return "data:" + mimeType + ";base64," + data.toBase64().data(); 425 } 426 427 } -
trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp
r86182 r86542 48 48 #include "SkiaUtils.h" 49 49 50 #include <wtf/text/ StringConcatenate.h>50 #include <wtf/text/WTFString.h> 51 51 52 52 using namespace std; … … 366 366 base64Encode(*reinterpret_cast<Vector<char>*>(&encodedImage), base64Data); 367 367 368 return makeString("data:", mimeType, ";base64,", base64Data);368 return "data:" + mimeType + ";base64," + base64Data; 369 369 } 370 370 -
trunk/Source/WebCore/platform/network/CredentialStorage.cpp
r69798 r86542 30 30 #include "KURL.h" 31 31 #include "ProtectionSpaceHash.h" 32 #include <wtf/text/ StringConcatenate.h>32 #include <wtf/text/WTFString.h> 33 33 #include <wtf/text/StringHash.h> 34 34 #include <wtf/HashMap.h> … … 61 61 { 62 62 if (url.port()) 63 return makeString(url.protocol(), "://", url.host(), ':', String::number(url.port()), '/');63 return url.protocol() + "://" + url.host() + ':' + String::number(url.port()) + '/'; 64 64 65 return makeString(url.protocol(), "://", url.host(), '/');65 return url.protocol() + "://" + url.host() + '/'; 66 66 } 67 67 -
trunk/Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp
r86330 r86542 40 40 #include "SocketStreamHandleClient.h" 41 41 #include <wtf/MainThread.h> 42 #include <wtf/text/ StringConcatenate.h>42 #include <wtf/text/WTFString.h> 43 43 44 44 #ifdef BUILDING_ON_LEOPARD … … 535 535 const char* descriptionOSStatus = GetMacOSStatusCommentString(static_cast<OSStatus>(errorCode)); 536 536 if (descriptionOSStatus && descriptionOSStatus[0] != '\0') 537 description = makeString("OSStatus Error ", String::number(errorCode), ": ", descriptionOSStatus);537 description = "OSStatus Error " + String::number(errorCode) + ": " + descriptionOSStatus; 538 538 } 539 539 #endif -
trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp
r74792 r86542 36 36 #include <wtf/Threading.h> 37 37 #include <wtf/text/CString.h> 38 #include <wtf/text/ StringConcatenate.h>38 #include <wtf/text/WTFString.h> 39 39 40 40 namespace WebCore { … … 227 227 void SQLiteDatabase::setSynchronous(SynchronousPragma sync) 228 228 { 229 executeCommand( makeString("PRAGMA synchronous = ", String::number(sync)));229 executeCommand("PRAGMA synchronous = " + String::number(sync)); 230 230 } 231 231 -
trunk/Source/WebCore/platform/text/wince/TextCodecWinCE.cpp
r86244 r86542 27 27 28 28 #include "FontCache.h" 29 #include "PlatformString.h"30 29 #include <mlang.h> 31 30 #include <winbase.h> … … 34 33 #include <wtf/HashSet.h> 35 34 #include <wtf/text/CString.h> 36 #include <wtf/text/ StringConcatenate.h>35 #include <wtf/text/WTFString.h> 37 36 #include <wtf/text/StringHash.h> 38 37 … … 111 110 info.m_aliases.append(String(cpInfo.wszHeaderCharset).latin1()); 112 111 info.m_aliases.append(String(cpInfo.wszBodyCharset).latin1()); 113 String cpName = makeString("cp", String::number(cpInfo.uiCodePage));112 String cpName = "cp" + String::number(cpInfo.uiCodePage); 114 113 info.m_aliases.append(cpName.latin1()); 115 114 supportedCharsets().add(i->second.data()); -
trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp
r86484 r86542 29 29 #include "DocumentFragment.h" 30 30 #include "KURL.h" 31 #include "PlatformString.h"32 31 #include "TextEncoding.h" 33 32 #include "markup.h" … … 37 36 #include <wtf/StringExtras.h> 38 37 #include <wtf/text/CString.h> 39 #include <wtf/text/ StringConcatenate.h>38 #include <wtf/text/WTFString.h> 40 39 41 40 #if USE(CF) -
trunk/Source/WebCore/platform/win/ClipboardWin.cpp
r86477 r86542 46 46 #include "Pasteboard.h" 47 47 #include "PlatformMouseEvent.h" 48 #include "PlatformString.h"49 48 #include "Range.h" 50 49 #include "RenderImage.h" … … 57 56 #include <wtf/RefPtr.h> 58 57 #include <wtf/text/CString.h> 59 #include <wtf/text/ StringConcatenate.h>58 #include <wtf/text/WTFString.h> 60 59 #include <wtf/text/StringHash.h> 61 60 … … 701 700 702 701 String fsPath = filesystemPathFromUrlOrTitle(url, titleStr, L".URL", true); 703 CString content = makeString("[InternetShortcut]\r\nURL=", url, "\r\n").latin1(); 702 String contentString("[InternetShortcut]\r\nURL=" + url + "\r\n"); 703 CString content = contentString.ascii(); 704 704 705 705 if (fsPath.length() <= 0) -
trunk/Source/WebCore/platform/win/FileSystemWin.cpp
r84051 r86542 33 33 #include "NotImplemented.h" 34 34 #include "PathWalker.h" 35 #include "PlatformString.h"36 35 #include <wtf/HashMap.h> 37 36 #include <wtf/text/CString.h> 38 #include <wtf/text/ StringConcatenate.h>37 #include <wtf/text/WTFString.h> 39 38 40 39 #include <windows.h> … … 338 337 continue; 339 338 340 entries.append( makeString(directory, "\\", reinterpret_cast<const UChar*>(walker.data().cFileName)));339 entries.append(directory + "\\" + reinterpret_cast<const UChar*>(walker.data().cFileName)); 341 340 } while (walker.step()); 342 341 -
trunk/Source/WebCore/platform/win/LanguageWin.cpp
r70095 r86542 27 27 #include "Language.h" 28 28 29 #include <wtf/text/ StringConcatenate.h>29 #include <wtf/text/WTFString.h> 30 30 31 31 namespace WebCore { … … 61 61 computedDefaultLanguage = languageName; 62 62 else 63 computedDefaultLanguage = makeString(languageName, '-', countryName);63 computedDefaultLanguage = languageName + '-' + countryName; 64 64 65 65 return computedDefaultLanguage; -
trunk/Source/WebCore/platform/win/PathWalker.cpp
r81065 r86542 27 27 #include "PathWalker.h" 28 28 29 #include <wtf/text/ StringConcatenate.h>29 #include <wtf/text/WTFString.h> 30 30 31 31 namespace WebCore { … … 33 33 PathWalker::PathWalker(const String& directory, const String& pattern) 34 34 { 35 String path = makeString(directory, "\\", pattern);35 String path = directory + "\\" + pattern; 36 36 m_handle = ::FindFirstFileW(path.charactersWithNullTermination(), &m_data); 37 37 } -
trunk/Source/WebCore/platform/win/SystemInfo.cpp
r80694 r86542 28 28 29 29 #include <windows.h> 30 #include <wtf/text/ StringConcatenate.h>30 #include <wtf/text/WTFString.h> 31 31 32 32 namespace WebCore { … … 112 112 113 113 const char* familyName = (version >= WindowsNT3) ? "Windows NT " : "Windows CE "; 114 return makeString(familyName, String::number(major), '.', String::number(minor));114 return familyName + String::number(major) + '.' + String::number(minor); 115 115 } 116 116 … … 176 176 String windowsVersionForUAString() 177 177 { 178 return makeString(osVersionForUAString(), architectureTokenForUAString());178 return osVersionForUAString() + architectureTokenForUAString(); 179 179 } 180 180 -
trunk/Source/WebCore/svg/SVGAngle.cpp
r74472 r86542 27 27 #include "SVGParserUtilities.h" 28 28 #include <wtf/MathExtras.h> 29 #include <wtf/text/ StringConcatenate.h>29 #include <wtf/text/WTFString.h> 30 30 31 31 namespace WebCore { … … 113 113 { 114 114 switch (m_unitType) { 115 case SVG_ANGLETYPE_DEG: 116 return makeString(String::number(m_valueInSpecifiedUnits), "deg"); 117 case SVG_ANGLETYPE_RAD: 118 return makeString(String::number(m_valueInSpecifiedUnits), "rad"); 119 case SVG_ANGLETYPE_GRAD: 120 return makeString(String::number(m_valueInSpecifiedUnits), "grad"); 121 case SVG_ANGLETYPE_UNSPECIFIED: 122 case SVG_ANGLETYPE_UNKNOWN: 123 return makeString(String::number(m_valueInSpecifiedUnits)); 115 case SVG_ANGLETYPE_DEG: { 116 DEFINE_STATIC_LOCAL(String, degString, ("deg")); 117 return String::number(m_valueInSpecifiedUnits) + degString; 118 } 119 case SVG_ANGLETYPE_RAD: { 120 DEFINE_STATIC_LOCAL(String, radString, ("rad")); 121 return String::number(m_valueInSpecifiedUnits) + radString; 122 } 123 case SVG_ANGLETYPE_GRAD: { 124 DEFINE_STATIC_LOCAL(String, gradString, ("grad")); 125 return String::number(m_valueInSpecifiedUnits) + gradString; 126 } 127 case SVG_ANGLETYPE_UNSPECIFIED: 128 case SVG_ANGLETYPE_UNKNOWN: 129 return String::number(m_valueInSpecifiedUnits); 124 130 } 125 131 -
trunk/Source/WebCore/svg/SVGLength.cpp
r76442 r86542 35 35 36 36 #include <wtf/MathExtras.h> 37 #include <wtf/text/ StringConcatenate.h>37 #include <wtf/text/WTFString.h> 38 38 39 39 namespace WebCore { … … 275 275 String SVGLength::valueAsString() const 276 276 { 277 return makeString(String::number(m_valueInSpecifiedUnits), lengthTypeToString(extractType(m_unit)));277 return String::number(m_valueInSpecifiedUnits) + lengthTypeToString(extractType(m_unit)); 278 278 } 279 279 -
trunk/Source/WebCore/svg/SVGPaint.cpp
r79985 r86542 27 27 #include "SVGException.h" 28 28 #include "SVGURIReference.h" 29 #include <wtf/text/ StringConcatenate.h>29 #include <wtf/text/WTFString.h> 30 30 31 31 namespace WebCore { … … 135 135 return "none"; 136 136 case SVG_PAINTTYPE_URI_NONE: 137 return m akeString(m_uri, " none");137 return m_uri + " none"; 138 138 case SVG_PAINTTYPE_URI_CURRENTCOLOR: 139 139 case SVG_PAINTTYPE_URI_RGBCOLOR: … … 142 142 if (color.isEmpty()) 143 143 return m_uri; 144 return m akeString(m_uri, ' ', color);144 return m_uri + ' ' + color; 145 145 } 146 146 case SVG_PAINTTYPE_URI: -
trunk/Source/WebCore/svg/SVGPointList.cpp
r71512 r86542 26 26 #include "FloatPoint.h" 27 27 #include <wtf/text/StringBuilder.h> 28 #include <wtf/text/ StringConcatenate.h>28 #include <wtf/text/WTFString.h> 29 29 30 30 namespace WebCore { … … 40 40 41 41 const FloatPoint& point = at(i); 42 builder.append( makeString(String::number(point.x()), ' ', String::number(point.y())));42 builder.append(String::number(point.x()) + ' ' + String::number(point.y())); 43 43 } 44 44 -
trunk/Source/WebCore/svg/SVGPreserveAspectRatio.cpp
r78704 r86542 28 28 #include "FloatRect.h" 29 29 #include "SVGParserUtilities.h" 30 #include <wtf/text/ StringConcatenate.h>30 #include <wtf/text/WTFString.h> 31 31 32 32 namespace WebCore { … … 333 333 return alignType; 334 334 case SVG_MEETORSLICE_MEET: 335 return makeString(alignType, " meet");335 return alignType + " meet"; 336 336 case SVG_MEETORSLICE_SLICE: 337 return makeString(alignType, " slice");338 } ;337 return alignType + " slice"; 338 } 339 339 } 340 340 -
trunk/Source/WebCore/svg/SVGTransform.cpp
r72518 r86542 31 31 #include <wtf/MathExtras.h> 32 32 #include <wtf/text/StringBuilder.h> 33 #include <wtf/text/ StringConcatenate.h>33 #include <wtf/text/WTFString.h> 34 34 35 35 namespace WebCore { … … 136 136 return String(); 137 137 case SVG_TRANSFORM_MATRIX: { 138 DEFINE_STATIC_LOCAL(String, matrixString, ("matrix(")); 138 139 StringBuilder builder; 139 builder.append(ma keString("matrix(", String::number(m_matrix.a()), ' ', String::number(m_matrix.b()), ' ', String::number(m_matrix.c()), ' '));140 builder.append(makeString(String::number(m_matrix.d()), ' ', String::number(m_matrix.e()), ' ', String::number(m_matrix.f()), ')'));140 builder.append(matrixString + String::number(m_matrix.a()) + ' ' + String::number(m_matrix.b()) + ' ' + String::number(m_matrix.c()) + ' ' + 141 String::number(m_matrix.d()) + ' ' + String::number(m_matrix.e()) + ' ' + String::number(m_matrix.f()) + ')'); 141 142 return builder.toString(); 142 143 } 143 case SVG_TRANSFORM_TRANSLATE: 144 return makeString("translate(", String::number(m_matrix.e()), ' ', String::number(m_matrix.f()), ')'); 145 case SVG_TRANSFORM_SCALE: 146 return makeString("scale(", String::number(m_matrix.xScale()), ' ', String::number(m_matrix.yScale()), ')'); 144 case SVG_TRANSFORM_TRANSLATE: { 145 DEFINE_STATIC_LOCAL(String, translateString, ("translate(")); 146 return translateString + String::number(m_matrix.e()) + ' ' + String::number(m_matrix.f()) + ')'; 147 } 148 case SVG_TRANSFORM_SCALE: { 149 DEFINE_STATIC_LOCAL(String, scaleString, ("scale(")); 150 return scaleString + String::number(m_matrix.xScale()) + ' ' + String::number(m_matrix.yScale()) + ')'; 151 } 147 152 case SVG_TRANSFORM_ROTATE: { 153 DEFINE_STATIC_LOCAL(String, rotateString, ("rotate(")); 148 154 double angleInRad = deg2rad(m_angle); 149 155 double cosAngle = cos(angleInRad); … … 152 158 float cy = narrowPrecisionToFloat(cosAngle != 1 ? (m_matrix.e() * sinAngle / (1 - cosAngle) + m_matrix.f()) / 2 : 0); 153 159 if (cx || cy) 154 return makeString("rotate(", String::number(m_angle), ' ', String::number(cx), ' ', String::number(cy), ')');155 return makeString("rotate(", String::number(m_angle), ')');160 return rotateString + String::number(m_angle) + ' ' + String::number(cx) + ' ' + String::number(cy) + ')'; 161 return rotateString + String::number(m_angle) + ')'; 156 162 } 157 case SVG_TRANSFORM_SKEWX: 158 return makeString("skewX(", String::number(m_angle), ')'); 159 case SVG_TRANSFORM_SKEWY: 160 return makeString("skewY(", String::number(m_angle), ')'); 163 case SVG_TRANSFORM_SKEWX: { 164 DEFINE_STATIC_LOCAL(String, skewXString, ("skewX(")); 165 return skewXString + String::number(m_angle) + ')'; 166 } 167 case SVG_TRANSFORM_SKEWY: { 168 DEFINE_STATIC_LOCAL(String, skewYString, ("skewY(")); 169 return skewYString + String::number(m_angle) + ')'; 170 } 161 171 } 162 172 -
trunk/Source/WebCore/svg/SVGTransformList.cpp
r76146 r86542 27 27 #include "SVGSVGElement.h" 28 28 #include "SVGTransform.h" 29 30 29 #include <wtf/text/StringBuilder.h> 31 #include <wtf/text/StringConcatenate.h>32 30 33 31 namespace WebCore { -
trunk/Source/WebCore/svg/SVGUseElement.cpp
r86050 r86542 47 47 #include "XMLDocumentParser.h" 48 48 #include "XMLSerializer.h" 49 50 #include <wtf/text/StringConcatenate.h>51 49 52 50 // Dump SVGElementInstance object tree - useful to debug instanceRoot problems … … 421 419 422 420 const HashSet<SVGElementInstance*>& elementInstances = element->instancesForElement(); 423 text += makeString("Corresponding element is associated with ", String::number(elementInstances.size()), " instance(s):\n");421 text += "Corresponding element is associated with " + String::number(elementInstances.size()) + " instance(s):\n"; 424 422 425 423 const HashSet<SVGElementInstance*>::const_iterator end = elementInstances.end(); -
trunk/Source/WebCore/websockets/WebSocket.cpp
r86315 r86542 52 52 #include <wtf/text/CString.h> 53 53 #include <wtf/text/StringBuilder.h> 54 #include <wtf/text/ StringConcatenate.h>54 #include <wtf/text/WTFString.h> 55 55 56 56 namespace WebCore { … … 146 146 } 147 147 if (!portAllowed(m_url)) { 148 scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, makeString("WebSocket port ", String::number(m_url.port()), " blocked"), 0, scriptExecutionContext()->securityOrigin()->toString(), 0);148 scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "WebSocket port " + String::number(m_url.port()) + " blocked", 0, scriptExecutionContext()->securityOrigin()->toString(), 0); 149 149 m_state = CLOSED; 150 150 ec = SECURITY_ERR; -
trunk/Source/WebCore/websockets/WebSocketChannel.cpp
r84340 r86542 40 40 #include "Logging.h" 41 41 #include "Page.h" 42 #include "PlatformString.h"43 42 #include "ProgressTracker.h" 44 43 #include "ScriptCallStack.h" … … 50 49 51 50 #include <wtf/text/CString.h> 52 #include <wtf/text/ StringConcatenate.h>51 #include <wtf/text/WTFString.h> 53 52 #include <wtf/text/StringHash.h> 54 53 #include <wtf/Deque.h> … … 217 216 message = "WebSocket network error"; 218 217 else if (error.localizedDescription().isNull()) 219 message = makeString("WebSocket network error: error code ", String::number(error.errorCode()));218 message = "WebSocket network error: error code " + String::number(error.errorCode()); 220 219 else 221 message = makeString("WebSocket network error: ", error.localizedDescription());220 message = "WebSocket network error: " + error.localizedDescription(); 222 221 String failingURL = error.failingURL(); 223 222 ASSERT(failingURL.isNull() || m_handshake.url().string() == failingURL); … … 255 254 return true; 256 255 } 257 m_context->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, makeString("WebSocket frame (at ", String::number(static_cast<unsigned long>(newBufferSize)), " bytes) is too long."), 0, m_handshake.clientOrigin(), 0);256 m_context->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "WebSocket frame (at " + String::number(static_cast<unsigned long>(newBufferSize)) + " bytes) is too long.", 0, m_handshake.clientOrigin(), 0); 258 257 return false; 259 258 } -
trunk/Source/WebCore/websockets/WebSocketHandshake.cpp
r80252 r86542 50 50 #include <wtf/StringExtras.h> 51 51 #include <wtf/Vector.h> 52 #include <wtf/text/AtomicString.h>53 52 #include <wtf/text/CString.h> 54 53 #include <wtf/text/StringBuilder.h> 55 #include <wtf/text/ StringConcatenate.h>54 #include <wtf/text/WTFString.h> 56 55 #include <wtf/unicode/CharacterNames.h> 57 56 … … 329 328 if (statusCode != 101) { 330 329 m_mode = Failed; 331 m_context->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, makeString("Unexpected response code: ", String::number(statusCode)), 0, clientOrigin(), 0);330 m_context->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "Unexpected response code: " + String::number(statusCode), 0, clientOrigin(), 0); 332 331 return len; 333 332 }
Note: See TracChangeset
for help on using the changeset viewer.