Changeset 239273 in webkit
- Timestamp:
- Dec 17, 2018 10:45:16 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 115 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r239257 r239273 1 2018-12-17 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r239254. 4 5 This broke the Windows 10 Debug build 6 7 Reverted changeset: 8 9 "Replace many uses of String::format with more type-safe 10 alternatives" 11 https://bugs.webkit.org/show_bug.cgi?id=192742 12 https://trac.webkit.org/changeset/239254 13 1 14 2018-12-15 Yusuke Suzuki <yusukesuzuki@slowstart.org> 2 15 -
trunk/Source/JavaScriptCore/inspector/InjectedScriptBase.cpp
r239254 r239273 41 41 #include "ScriptFunctionCall.h" 42 42 #include <wtf/JSONValues.h> 43 #include <wtf/text/ StringConcatenateNumbers.h>43 #include <wtf/text/WTFString.h> 44 44 45 45 namespace Inspector { … … 92 92 RefPtr<JSON::Value> resultJSONValue = toInspectorValue(*m_injectedScriptObject.scriptState(), resultJSValue); 93 93 if (!resultJSONValue) 94 return JSON::Value::create( makeString("Object has too long reference chain (must not be longer than ", JSON::Value::maxDepth, ')'));94 return JSON::Value::create(String::format("Object has too long reference chain (must not be longer than %d)", JSON::Value::maxDepth)); 95 95 96 96 return resultJSONValue.releaseNonNull(); … … 123 123 checkAsyncCallResult(resultJSONValue, callback); 124 124 else 125 checkAsyncCallResult(JSON::Value::create( makeString("Object has too long reference chain (must not be longer than ", JSON::Value::maxDepth, ')')), callback);125 checkAsyncCallResult(JSON::Value::create(String::format("Object has too long reference chain (must not be longer than %d)", JSON::Value::maxDepth)), callback); 126 126 return JSC::JSValue::encode(JSC::jsUndefined()); 127 127 }); -
trunk/Source/JavaScriptCore/inspector/InspectorBackendDispatcher.cpp
r239254 r239273 292 292 if (!object) { 293 293 if (!out_optionalValueFound) 294 reportProtocolError(BackendDispatcher::InvalidParams, makeString("'params' object must contain required parameter '", name, "' with type '", typeName, "'."));294 reportProtocolError(BackendDispatcher::InvalidParams, String::format("'params' object must contain required parameter '%s' with type '%s'.", name.utf8().data(), typeName)); 295 295 return result; 296 296 } … … 299 299 if (findResult == object->end()) { 300 300 if (!out_optionalValueFound) 301 reportProtocolError(BackendDispatcher::InvalidParams, makeString("Parameter '", name, "' with type '", typeName, "' was not found."));301 reportProtocolError(BackendDispatcher::InvalidParams, String::format("Parameter '%s' with type '%s' was not found.", name.utf8().data(), typeName)); 302 302 return result; 303 303 } 304 304 305 305 if (!asMethod(*findResult->value, result)) { 306 reportProtocolError(BackendDispatcher::InvalidParams, makeString("Parameter '", name, "' has wrong type. It must be '", typeName, "'."));306 reportProtocolError(BackendDispatcher::InvalidParams, String::format("Parameter '%s' has wrong type. It must be '%s'.", name.utf8().data(), typeName)); 307 307 return result; 308 308 } -
trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp
r239254 r239273 36 36 #include "ScriptCallStackFactory.h" 37 37 #include "ScriptObject.h" 38 #include <wtf/text/ StringConcatenateNumbers.h>38 #include <wtf/text/WTFString.h> 39 39 40 40 namespace Inspector { … … 80 80 81 81 if (m_expiredConsoleMessageCount) { 82 ConsoleMessage expiredMessage(MessageSource::Other, MessageType::Log, MessageLevel::Warning, makeString(m_expiredConsoleMessageCount, " console messages are not shown."));82 ConsoleMessage expiredMessage(MessageSource::Other, MessageType::Log, MessageLevel::Warning, String::format("%d console messages are not shown.", m_expiredConsoleMessageCount)); 83 83 expiredMessage.addToFrontend(*m_frontendDispatcher, m_injectedScriptManager, false); 84 84 } -
trunk/Source/JavaScriptCore/jsc.cpp
r239257 r239273 90 90 #include <wtf/WallTime.h> 91 91 #include <wtf/text/StringBuilder.h> 92 #include <wtf/text/StringConcatenateNumbers.h>93 92 94 93 #if OS(WINDOWS) … … 1166 1165 StackVisitor::Status operator()(StackVisitor& visitor) const 1167 1166 { 1168 m_trace.append( makeString(" ", visitor->index(), " ", visitor->toString(), '\n'));1167 m_trace.append(String::format(" %zu %s\n", visitor->index(), visitor->toString().utf8().data())); 1169 1168 return StackVisitor::Continue; 1170 1169 } -
trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp
r239254 r239273 505 505 tz = canonicalizeTimeZoneName(originalTz); 506 506 if (tz.isNull()) { 507 throwRangeError(&exec, scope, "invalid time zone: " + originalTz);507 throwRangeError(&exec, scope, String::format("invalid time zone: %s", originalTz.utf8().data())); 508 508 return; 509 509 } -
trunk/Source/JavaScriptCore/runtime/IntlObject.cpp
r239254 r239273 554 554 String canonicalizedTag = canonicalizeLanguageTag(tag->value(&state)); 555 555 if (canonicalizedTag.isNull()) { 556 throwException(&state, scope, createRangeError(&state, "invalid language tag: " + tag->value(&state)));556 throwException(&state, scope, createRangeError(&state, String::format("invalid language tag: %s", tag->value(&state).utf8().data()))); 557 557 return Vector<String>(); 558 558 } -
trunk/Source/WTF/ChangeLog
r239265 r239273 1 2018-12-17 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r239254. 4 5 This broke the Windows 10 Debug build 6 7 Reverted changeset: 8 9 "Replace many uses of String::format with more type-safe 10 alternatives" 11 https://bugs.webkit.org/show_bug.cgi?id=192742 12 https://trac.webkit.org/changeset/239254 13 1 14 2018-12-17 Ms2ger <Ms2ger@igalia.com> 2 15 -
trunk/Source/WTF/wtf/WorkQueue.cpp
r239254 r239273 37 37 #include <wtf/Ref.h> 38 38 #include <wtf/Threading.h> 39 #include <wtf/text/ StringConcatenateNumbers.h>39 #include <wtf/text/WTFString.h> 40 40 41 41 namespace WTF { … … 76 76 m_workers.reserveInitialCapacity(threadCount); 77 77 for (unsigned i = 0; i < threadCount; ++i) { 78 m_workers.append(Thread::create( makeString("ThreadPool Worker", i).utf8().data(), [this] {78 m_workers.append(Thread::create(String::format("ThreadPool Worker %u", i).utf8().data(), [this] { 79 79 threadBody(); 80 80 })); -
trunk/Source/WTF/wtf/dtoa.cpp
r239254 r239273 1273 1273 const char* numberToFixedPrecisionString(double d, unsigned significantFigures, NumberToStringBuffer buffer, bool truncateTrailingZeros) 1274 1274 { 1275 // Mimic sprintf("%.[precision]g", ...), but use dtoas rounding facilities.1275 // Mimic String::format("%.[precision]g", ...), but use dtoas rounding facilities. 1276 1276 // "g": Signed value printed in f or e format, whichever is more compact for the given value and precision. 1277 1277 // The e format is used only when the exponent of the value is less than –4 or greater than or equal to the … … 1288 1288 const char* numberToFixedWidthString(double d, unsigned decimalPlaces, NumberToStringBuffer buffer) 1289 1289 { 1290 // Mimic sprintf("%.[precision]f", ...), but use dtoas rounding facilities.1290 // Mimic String::format("%.[precision]f", ...), but use dtoas rounding facilities. 1291 1291 // "f": Signed value having the form [ – ]dddd.dddd, where dddd is one or more decimal digits. 1292 1292 // The number of digits before the decimal point depends on the magnitude of the number, and -
trunk/Source/WebCore/ChangeLog
r239270 r239273 1 2018-12-17 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r239254. 4 5 This broke the Windows 10 Debug build 6 7 Reverted changeset: 8 9 "Replace many uses of String::format with more type-safe 10 alternatives" 11 https://bugs.webkit.org/show_bug.cgi?id=192742 12 https://trac.webkit.org/changeset/239254 13 1 14 2018-12-17 Antoine Quint <graouts@apple.com> 2 15 -
trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp
r239254 r239273 56 56 #include <JavaScriptCore/StructureInlines.h> 57 57 #include <wtf/NeverDestroyed.h> 58 #include <wtf/text/StringConcatenateNumbers.h>59 58 60 59 namespace WebCore { … … 1846 1845 1847 1846 // We don't already have a file for this blobURL, so commit our file as a unique filename 1848 String storedFilename = makeString(potentialFileNameInteger, ".blob");1847 String storedFilename = String::format("%" PRId64 ".blob", potentialFileNameInteger); 1849 1848 { 1850 1849 auto* sql = cachedStatement(SQL::AddBlobFilename, "INSERT INTO BlobFiles VALUES (?, ?);"_s); -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBCursorInfo.cpp
r239254 r239273 32 32 #include "IDBTransaction.h" 33 33 #include "IndexedDB.h" 34 #include <wtf/text/StringConcatenateNumbers.h>35 34 36 35 namespace WebCore { … … 102 101 103 102 #if !LOG_DISABLED 104 105 103 String IDBCursorInfo::loggingString() const 106 104 { 107 105 if (m_source == IndexedDB::CursorSource::Index) 108 return makeString("<Crsr: ", m_cursorIdentifier.loggingString(), " Idx ", m_sourceIdentifier, ", OS ", m_objectStoreIdentifier, ", tx ", m_transactionIdentifier.loggingString(), '>');106 return String::format("<Crsr: %s Idx %" PRIu64 ", OS %" PRIu64 ", tx %s>", m_cursorIdentifier.loggingString().utf8().data(), m_sourceIdentifier, m_objectStoreIdentifier, m_transactionIdentifier.loggingString().utf8().data()); 109 107 110 return makeString("<Crsr: ", m_cursorIdentifier.loggingString(), " OS ", m_objectStoreIdentifier, ", tx ", m_transactionIdentifier.loggingString(), '>');108 return String::format("<Crsr: %s OS %" PRIu64 ", tx %s>", m_cursorIdentifier.loggingString().utf8().data(), m_objectStoreIdentifier, m_transactionIdentifier.loggingString().utf8().data()); 111 109 } 112 113 110 #endif 114 111 -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBGetAllRecordsData.cpp
r239254 r239273 39 39 40 40 #if !LOG_DISABLED 41 42 41 String IDBGetAllRecordsData::loggingString() const 43 42 { 44 43 if (indexIdentifier) 45 return makeString("<GetAllRecords: Idx ", indexIdentifier, ", OS ", objectStoreIdentifier, ", ", getAllType == IndexedDB::GetAllType::Keys ? "Keys" : "Values", ", range ", keyRangeData.loggingString(), '>');46 return makeString("<GetAllRecords: OS ", objectStoreIdentifier, ", ", getAllType == IndexedDB::GetAllType::Keys ? "Keys" : "Values", ", range ", keyRangeData.loggingString(), '>');44 return String::format("<GetAllRecords: Idx %" PRIu64 ", OS %" PRIu64 ", %s, range %s>", indexIdentifier, objectStoreIdentifier, getAllType == IndexedDB::GetAllType::Keys ? "Keys" : "Values", keyRangeData.loggingString().utf8().data()); 45 return String::format("<GetAllRecords: OS %" PRIu64 ", %s, range %s>", objectStoreIdentifier, getAllType == IndexedDB::GetAllType::Keys ? "Keys" : "Values", keyRangeData.loggingString().utf8().data()); 47 46 } 48 49 47 #endif 50 48 -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBGetRecordData.cpp
r239254 r239273 39 39 40 40 #if !LOG_DISABLED 41 42 41 String IDBGetRecordData::loggingString() const 43 42 { 44 return makeString("<GetRecord: ", type == IDBGetRecordDataType::KeyOnly ? "KeyOnly" : "Key+Value", ' ', keyRangeData.loggingString(), '>');43 return String::format("<GetRecord: %s %s>", type == IDBGetRecordDataType::KeyOnly ? "KeyOnly" : "Key+Value", keyRangeData.loggingString().utf8().data()); 45 44 } 46 47 45 #endif 48 46 -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBIndexInfo.cpp
r239254 r239273 29 29 #if ENABLE(INDEXED_DATABASE) 30 30 31 #include <wtf/text/StringConcatenateNumbers.h>32 33 31 namespace WebCore { 34 32 … … 53 51 54 52 #if !LOG_DISABLED 55 56 53 String IDBIndexInfo::loggingString(int indent) const 57 54 { … … 59 56 for (int i = 0; i < indent; ++i) 60 57 indentString.append(" "); 61 return makeString(indentString, "Index: ", m_name, " (", m_identifier, ") keyPath: ", WebCore::loggingString(m_keyPath), '\n'); 58 59 return makeString(indentString, "Index: ", m_name, String::format(" (%" PRIu64 ") keyPath: %s\n", m_identifier, WebCore::loggingString(m_keyPath).utf8().data())); 62 60 } 63 61 64 62 String IDBIndexInfo::condensedLoggingString() const 65 63 { 66 return makeString("<Idx: ", m_name, " (", m_identifier, "), OS (", m_objectStoreIdentifier, ")>");64 return String::format("<Idx: %s (%" PRIu64 "), OS (%" PRIu64 ")>", m_name.utf8().data(), m_identifier, m_objectStoreIdentifier); 67 65 } 68 69 66 #endif 70 67 -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBIterateCursorData.cpp
r239254 r239273 37 37 38 38 #if !LOG_DISABLED 39 40 39 String IDBIterateCursorData::loggingString() const 41 40 { 42 return makeString("<Itr8Crsr: key ", keyData.loggingString(), ", primaryKey ", primaryKeyData.loggingString(), ", count ", count, '>');41 return String::format("<Itr8Crsr: key %s, primaryKey %s, count %u>", keyData.loggingString().utf8().data(), primaryKeyData.loggingString().utf8().data(), count); 43 42 } 44 45 43 #endif 46 44 -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBObjectStoreInfo.cpp
r239254 r239273 154 154 String IDBObjectStoreInfo::condensedLoggingString() const 155 155 { 156 return makeString("<OS: ", m_name, " (", m_identifier, ")>");156 return String::format("<OS: %s (%" PRIu64 ")>", m_name.utf8().data(), m_identifier); 157 157 } 158 158 -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBResourceIdentifier.cpp
r239254 r239273 99 99 100 100 #if !LOG_DISABLED 101 102 101 String IDBResourceIdentifier::loggingString() const 103 102 { 104 return makeString('<', m_idbConnectionIdentifier, ", ", m_resourceNumber, '>');103 return String::format("<%" PRIu64", %" PRIu64">", m_idbConnectionIdentifier, m_resourceNumber); 105 104 } 106 107 105 #endif 108 109 106 } // namespace WebCore 110 107 -
trunk/Source/WebCore/Modules/webdatabase/Database.cpp
r239254 r239273 108 108 static String formatErrorMessage(const char* message, int sqliteErrorCode, const char* sqliteErrorMessage) 109 109 { 110 return makeString(message, " (", sqliteErrorCode, ' ', sqliteErrorMessage, ')');110 return String::format("%s (%d %s)", message, sqliteErrorCode, sqliteErrorMessage); 111 111 } 112 112 -
trunk/Source/WebCore/Modules/webdatabase/SQLError.h
r239254 r239273 30 30 31 31 #include <wtf/ThreadSafeRefCounted.h> 32 #include <wtf/text/ StringConcatenateNumbers.h>32 #include <wtf/text/WTFString.h> 33 33 34 34 namespace WebCore { … … 39 39 static Ref<SQLError> create(unsigned code, const char* message, int sqliteCode) 40 40 { 41 return create(code, makeString(message, " (", sqliteCode, ')'));41 return create(code, String::format("%s (%d)", message, sqliteCode)); 42 42 } 43 43 static Ref<SQLError> create(unsigned code, const char* message, int sqliteCode, const char* sqliteMessage) 44 44 { 45 return create(code, makeString(message, " (", sqliteCode, ' ', sqliteMessage, ')'));45 return create(code, String::format("%s (%d %s)", message, sqliteCode, sqliteMessage)); 46 46 } 47 47 -
trunk/Source/WebCore/PAL/ChangeLog
r239255 r239273 1 2018-12-17 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r239254. 4 5 This broke the Windows 10 Debug build 6 7 Reverted changeset: 8 9 "Replace many uses of String::format with more type-safe 10 alternatives" 11 https://bugs.webkit.org/show_bug.cgi?id=192742 12 https://trac.webkit.org/changeset/239254 13 1 14 2018-12-15 Darin Adler <darin@apple.com> 2 15 -
trunk/Source/WebCore/PAL/pal/FileSizeFormatter.cpp
r239254 r239273 29 29 #if !PLATFORM(COCOA) 30 30 31 #include <wtf/text/StringConcatenateNumbers.h>32 33 31 String fileSizeDescription(uint64_t size) 34 32 { … … 36 34 // See <https://bugs.webkit.org/show_bug.cgi?id=179019> for more details. 37 35 if (size < 1000) 38 return makeString(size, " bytes");36 return String::format("%tu bytes", size); 39 37 if (size < 1000000) 40 38 return String::format("%.1f KB", size / 1000.); -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r239254 r239273 4558 4558 push(@implContent, " builder.setWrappedObjectForCell(cell, &thisObject->wrapped());\n"); 4559 4559 push(@implContent, " if (thisObject->scriptExecutionContext())\n"); 4560 push(@implContent, " builder.setLabelForCell(cell, \"url \" + thisObject->scriptExecutionContext()->url().string());\n");4560 push(@implContent, " builder.setLabelForCell(cell, String::format(\"url %s\", thisObject->scriptExecutionContext()->url().string().utf8().data()));\n"); 4561 4561 push(@implContent, " Base::heapSnapshot(cell, builder);\n"); 4562 4562 push(@implContent, "}\n\n"); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSInterfaceName.cpp
r239254 r239273 177 177 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 178 178 if (thisObject->scriptExecutionContext()) 179 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());179 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 180 180 Base::heapSnapshot(cell, builder); 181 181 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSMapLike.cpp
r239254 r239273 346 346 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 347 347 if (thisObject->scriptExecutionContext()) 348 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());348 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 349 349 Base::heapSnapshot(cell, builder); 350 350 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSReadOnlyMapLike.cpp
r239254 r239273 295 295 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 296 296 if (thisObject->scriptExecutionContext()) 297 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());297 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 298 298 Base::heapSnapshot(cell, builder); 299 299 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp
r239254 r239273 256 256 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 257 257 if (thisObject->scriptExecutionContext()) 258 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());258 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 259 259 Base::heapSnapshot(cell, builder); 260 260 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactions.cpp
r239254 r239273 436 436 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 437 437 if (thisObject->scriptExecutionContext()) 438 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());438 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 439 439 Base::heapSnapshot(cell, builder); 440 440 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp
r239254 r239273 265 265 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 266 266 if (thisObject->scriptExecutionContext()) 267 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());267 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 268 268 Base::heapSnapshot(cell, builder); 269 269 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallTracer.cpp
r239254 r239273 529 529 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 530 530 if (thisObject->scriptExecutionContext()) 531 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());531 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 532 532 Base::heapSnapshot(cell, builder); 533 533 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp
r239254 r239273 169 169 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 170 170 if (thisObject->scriptExecutionContext()) 171 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());171 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 172 172 Base::heapSnapshot(cell, builder); 173 173 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp
r239254 r239273 167 167 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 168 168 if (thisObject->scriptExecutionContext()) 169 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());169 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 170 170 Base::heapSnapshot(cell, builder); 171 171 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDOMJIT.cpp
r239254 r239273 1267 1267 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 1268 1268 if (thisObject->scriptExecutionContext()) 1269 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());1269 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 1270 1270 Base::heapSnapshot(cell, builder); 1271 1271 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledBySetting.cpp
r239254 r239273 303 303 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 304 304 if (thisObject->scriptExecutionContext()) 305 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());305 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 306 306 Base::heapSnapshot(cell, builder); 307 307 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp
r239254 r239273 312 312 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 313 313 if (thisObject->scriptExecutionContext()) 314 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());314 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 315 315 Base::heapSnapshot(cell, builder); 316 316 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp
r239254 r239273 255 255 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 256 256 if (thisObject->scriptExecutionContext()) 257 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());257 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 258 258 Base::heapSnapshot(cell, builder); 259 259 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp
r239254 r239273 186 186 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 187 187 if (thisObject->scriptExecutionContext()) 188 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());188 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 189 189 Base::heapSnapshot(cell, builder); 190 190 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp
r239254 r239273 191 191 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 192 192 if (thisObject->scriptExecutionContext()) 193 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());193 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 194 194 Base::heapSnapshot(cell, builder); 195 195 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp
r239254 r239273 615 615 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 616 616 if (thisObject->scriptExecutionContext()) 617 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());617 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 618 618 Base::heapSnapshot(cell, builder); 619 619 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp
r239254 r239273 254 254 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 255 255 if (thisObject->scriptExecutionContext()) 256 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());256 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 257 257 Base::heapSnapshot(cell, builder); 258 258 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp
r239254 r239273 254 254 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 255 255 if (thisObject->scriptExecutionContext()) 256 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());256 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 257 257 Base::heapSnapshot(cell, builder); 258 258 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp
r239254 r239273 286 286 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 287 287 if (thisObject->scriptExecutionContext()) 288 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());288 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 289 289 Base::heapSnapshot(cell, builder); 290 290 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
r239254 r239273 1023 1023 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 1024 1024 if (thisObject->scriptExecutionContext()) 1025 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());1025 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 1026 1026 Base::heapSnapshot(cell, builder); 1027 1027 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp
r239254 r239273 186 186 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 187 187 if (thisObject->scriptExecutionContext()) 188 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());188 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 189 189 Base::heapSnapshot(cell, builder); 190 190 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestIterable.cpp
r239254 r239273 239 239 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 240 240 if (thisObject->scriptExecutionContext()) 241 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());241 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 242 242 Base::heapSnapshot(cell, builder); 243 243 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
r239254 r239273 195 195 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 196 196 if (thisObject->scriptExecutionContext()) 197 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());197 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 198 198 Base::heapSnapshot(cell, builder); 199 199 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp
r239254 r239273 320 320 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 321 321 if (thisObject->scriptExecutionContext()) 322 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());322 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 323 323 Base::heapSnapshot(cell, builder); 324 324 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp
r239254 r239273 320 320 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 321 321 if (thisObject->scriptExecutionContext()) 322 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());322 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 323 323 Base::heapSnapshot(cell, builder); 324 324 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp
r239254 r239273 374 374 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 375 375 if (thisObject->scriptExecutionContext()) 376 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());376 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 377 377 Base::heapSnapshot(cell, builder); 378 378 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp
r239254 r239273 206 206 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 207 207 if (thisObject->scriptExecutionContext()) 208 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());208 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 209 209 Base::heapSnapshot(cell, builder); 210 210 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp
r239254 r239273 234 234 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 235 235 if (thisObject->scriptExecutionContext()) 236 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());236 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 237 237 Base::heapSnapshot(cell, builder); 238 238 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp
r239254 r239273 248 248 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 249 249 if (thisObject->scriptExecutionContext()) 250 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());250 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 251 251 Base::heapSnapshot(cell, builder); 252 252 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp
r239254 r239273 265 265 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 266 266 if (thisObject->scriptExecutionContext()) 267 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());267 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 268 268 Base::heapSnapshot(cell, builder); 269 269 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp
r239254 r239273 251 251 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 252 252 if (thisObject->scriptExecutionContext()) 253 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());253 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 254 254 Base::heapSnapshot(cell, builder); 255 255 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp
r239254 r239273 213 213 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 214 214 if (thisObject->scriptExecutionContext()) 215 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());215 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 216 216 Base::heapSnapshot(cell, builder); 217 217 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp
r239254 r239273 213 213 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 214 214 if (thisObject->scriptExecutionContext()) 215 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());215 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 216 216 Base::heapSnapshot(cell, builder); 217 217 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp
r239254 r239273 241 241 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 242 242 if (thisObject->scriptExecutionContext()) 243 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());243 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 244 244 Base::heapSnapshot(cell, builder); 245 245 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp
r239254 r239273 275 275 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 276 276 if (thisObject->scriptExecutionContext()) 277 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());277 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 278 278 Base::heapSnapshot(cell, builder); 279 279 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp
r239254 r239273 275 275 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 276 276 if (thisObject->scriptExecutionContext()) 277 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());277 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 278 278 Base::heapSnapshot(cell, builder); 279 279 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp
r239254 r239273 306 306 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 307 307 if (thisObject->scriptExecutionContext()) 308 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());308 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 309 309 Base::heapSnapshot(cell, builder); 310 310 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp
r239254 r239273 348 348 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 349 349 if (thisObject->scriptExecutionContext()) 350 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());350 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 351 351 Base::heapSnapshot(cell, builder); 352 352 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp
r239254 r239273 398 398 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 399 399 if (thisObject->scriptExecutionContext()) 400 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());400 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 401 401 Base::heapSnapshot(cell, builder); 402 402 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp
r239254 r239273 262 262 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 263 263 if (thisObject->scriptExecutionContext()) 264 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());264 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 265 265 Base::heapSnapshot(cell, builder); 266 266 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp
r239254 r239273 344 344 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 345 345 if (thisObject->scriptExecutionContext()) 346 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());346 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 347 347 Base::heapSnapshot(cell, builder); 348 348 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp
r239254 r239273 331 331 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 332 332 if (thisObject->scriptExecutionContext()) 333 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());333 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 334 334 Base::heapSnapshot(cell, builder); 335 335 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp
r239254 r239273 420 420 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 421 421 if (thisObject->scriptExecutionContext()) 422 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());422 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 423 423 Base::heapSnapshot(cell, builder); 424 424 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r239254 r239273 8502 8502 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 8503 8503 if (thisObject->scriptExecutionContext()) 8504 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());8504 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 8505 8505 Base::heapSnapshot(cell, builder); 8506 8506 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp
r239254 r239273 258 258 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 259 259 if (thisObject->scriptExecutionContext()) 260 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());260 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 261 261 Base::heapSnapshot(cell, builder); 262 262 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp
r239254 r239273 214 214 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 215 215 if (thisObject->scriptExecutionContext()) 216 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());216 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 217 217 Base::heapSnapshot(cell, builder); 218 218 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp
r239254 r239273 244 244 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 245 245 if (thisObject->scriptExecutionContext()) 246 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());246 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 247 247 Base::heapSnapshot(cell, builder); 248 248 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestPluginInterface.cpp
r239254 r239273 217 217 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 218 218 if (thisObject->scriptExecutionContext()) 219 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());219 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 220 220 Base::heapSnapshot(cell, builder); 221 221 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp
r239254 r239273 294 294 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 295 295 if (thisObject->scriptExecutionContext()) 296 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());296 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 297 297 Base::heapSnapshot(cell, builder); 298 298 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerialization.cpp
r239254 r239273 551 551 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 552 552 if (thisObject->scriptExecutionContext()) 553 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());553 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 554 554 Base::heapSnapshot(cell, builder); 555 555 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp
r239254 r239273 155 155 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 156 156 if (thisObject->scriptExecutionContext()) 157 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());157 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 158 158 Base::heapSnapshot(cell, builder); 159 159 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializationInherit.cpp
r239254 r239273 230 230 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 231 231 if (thisObject->scriptExecutionContext()) 232 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());232 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 233 233 Base::heapSnapshot(cell, builder); 234 234 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp
r239254 r239273 264 264 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 265 265 if (thisObject->scriptExecutionContext()) 266 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());266 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 267 267 Base::heapSnapshot(cell, builder); 268 268 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp
r239254 r239273 354 354 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 355 355 if (thisObject->scriptExecutionContext()) 356 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());356 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 357 357 Base::heapSnapshot(cell, builder); 358 358 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifier.cpp
r239254 r239273 188 188 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 189 189 if (thisObject->scriptExecutionContext()) 190 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());190 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 191 191 Base::heapSnapshot(cell, builder); 192 192 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp
r239254 r239273 188 188 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 189 189 if (thisObject->scriptExecutionContext()) 190 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());190 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 191 191 Base::heapSnapshot(cell, builder); 192 192 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp
r239254 r239273 203 203 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 204 204 if (thisObject->scriptExecutionContext()) 205 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());205 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 206 206 Base::heapSnapshot(cell, builder); 207 207 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp
r239254 r239273 203 203 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 204 204 if (thisObject->scriptExecutionContext()) 205 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());205 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 206 206 Base::heapSnapshot(cell, builder); 207 207 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp
r239254 r239273 188 188 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 189 189 if (thisObject->scriptExecutionContext()) 190 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());190 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 191 191 Base::heapSnapshot(cell, builder); 192 192 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp
r239254 r239273 210 210 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 211 211 if (thisObject->scriptExecutionContext()) 212 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());212 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 213 213 Base::heapSnapshot(cell, builder); 214 214 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp
r239254 r239273 228 228 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 229 229 if (thisObject->scriptExecutionContext()) 230 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());230 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 231 231 Base::heapSnapshot(cell, builder); 232 232 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp
r239254 r239273 750 750 builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); 751 751 if (thisObject->scriptExecutionContext()) 752 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());752 builder.setLabelForCell(cell, String::format("url %s", thisObject->scriptExecutionContext()->url().string().utf8().data())); 753 753 Base::heapSnapshot(cell, builder); 754 754 } -
trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
r239254 r239273 44 44 #include "Pair.h" 45 45 #include "StyleColor.h" 46 #include <wtf/text/StringConcatenateNumbers.h>47 46 48 47 namespace WebCore { … … 643 642 return Color(); 644 643 if (token.type() == NumberToken) // e.g. 112233 645 color = String:: number(static_cast<int>(token.numericValue()));644 color = String::format("%d", static_cast<int>(token.numericValue())); 646 645 else // e.g. 0001FF 647 color = makeString(static_cast<int>(token.numericValue()), token.value().toString());646 color = String::number(static_cast<int>(token.numericValue())) + token.value().toString(); 648 647 while (color.length() < 6) 649 648 color = "0" + color; -
trunk/Source/WebCore/html/HTMLSelectElement.cpp
r239254 r239273 56 56 #include "SpatialNavigation.h" 57 57 #include <wtf/IsoMallocInlines.h> 58 #include <wtf/text/StringConcatenateNumbers.h>59 58 60 59 namespace WebCore { … … 460 459 { 461 460 if (newLength > length() && newLength > maxSelectItems) { 462 document().addConsoleMessage(MessageSource::Other, MessageLevel::Warning, makeString("Blocked attempt to expand the option list to ", newLength, " items. The maximum number of items allowed is ", maxSelectItems, '.'));461 document().addConsoleMessage(MessageSource::Other, MessageLevel::Warning, String::format("Blocked attempt to expand the option list to %u items. The maximum number of items allowed is %u.", newLength, maxSelectItems)); 463 462 return { }; 464 463 } -
trunk/Source/WebCore/html/ImageDocument.cpp
r239254 r239273 50 50 #include "Settings.h" 51 51 #include <wtf/IsoMallocInlines.h> 52 #include <wtf/text/StringConcatenateNumbers.h>53 52 54 53 namespace WebCore { … … 275 274 FloatSize screenSize = page()->chrome().screenSize(); 276 275 if (imageSize.width() > screenSize.width()) 277 processViewport( makeString("width=", imageSize.width().toInt(), ",viewport-fit=cover"), ViewportArguments::ImageDocument);276 processViewport(String::format("width=%u,viewport-fit=cover", static_cast<unsigned>(imageSize.width().toInt())), ViewportArguments::ImageDocument); 278 277 279 278 if (page()) -
trunk/Source/WebCore/html/parser/XSSAuditor.cpp
r239254 r239273 46 46 #include <wtf/MainThread.h> 47 47 #include <wtf/NeverDestroyed.h> 48 #include <wtf/text/String ConcatenateNumbers.h>48 #include <wtf/text/StringView.h> 49 49 50 50 namespace WebCore { … … 333 333 } 334 334 if (m_xssProtection == XSSProtectionDisposition::Invalid) { 335 document->addConsoleMessage(MessageSource::Security, MessageLevel::Error, makeString("Error parsing header X-XSS-Protection: ", headerValue, ": ", errorDetails, " at character position ", errorPosition, ". The default protections will be applied."));335 document->addConsoleMessage(MessageSource::Security, MessageLevel::Error, "Error parsing header X-XSS-Protection: " + headerValue + ": " + errorDetails + " at character position " + String::format("%u", errorPosition) + ". The default protections will be applied."); 336 336 m_xssProtection = XSSProtectionDisposition::Enabled; 337 337 } -
trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
r239254 r239273 206 206 void InspectorFrontendClientLocal::setDockingUnavailable(bool unavailable) 207 207 { 208 evaluateOnLoad( makeString("[\"setDockingUnavailable\", ", unavailable ? "true" : "false", ']'));208 evaluateOnLoad(String::format("[\"setDockingUnavailable\", %s]", unavailable ? "true" : "false")); 209 209 } 210 210 … … 271 271 m_dockSide = dockSide; 272 272 273 evaluateOnLoad( makeString("[\"setDockSide\", \"", side, "\"]"));273 evaluateOnLoad(String::format("[\"setDockSide\", \"%s\"]", side)); 274 274 } 275 275 … … 295 295 void InspectorFrontendClientLocal::setDebuggingEnabled(bool enabled) 296 296 { 297 evaluateOnLoad( makeString("[\"setDebuggingEnabled\", ", enabled ? "true" : "false", ']'));297 evaluateOnLoad(String::format("[\"setDebuggingEnabled\", %s]", enabled ? "true" : "false")); 298 298 } 299 299 … … 307 307 void InspectorFrontendClientLocal::setTimelineProfilingEnabled(bool enabled) 308 308 { 309 evaluateOnLoad( makeString("[\"setTimelineProfilingEnabled\", ", enabled ? "true" : "false", ']'));309 evaluateOnLoad(String::format("[\"setTimelineProfilingEnabled\", %s]", enabled ? "true" : "false")); 310 310 } 311 311 … … 340 340 { 341 341 String frameId = m_inspectedPageController->pageAgent()->frameId(frame); 342 evaluateOnLoad( makeString("[\"showMainResourceForFrame\", \"", frameId, "\"]"));342 evaluateOnLoad(String::format("[\"showMainResourceForFrame\", \"%s\"]", frameId.ascii().data())); 343 343 } 344 344 -
trunk/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
r239254 r239273 158 158 String mergeId() final 159 159 { 160 return "SetStyleSheetText " + m_styleSheet->id();160 return String::format("SetStyleSheetText %s", m_styleSheet->id().utf8().data()); 161 161 } 162 162 … … 199 199 { 200 200 ASSERT(m_styleSheet->id() == m_cssId.styleSheetId()); 201 return makeString("SetStyleText ", m_styleSheet->id(), ':', m_cssId.ordinal());201 return String::format("SetStyleText %s:%u", m_styleSheet->id().utf8().data(), m_cssId.ordinal()); 202 202 } 203 203 -
trunk/Source/WebCore/inspector/agents/InspectorIndexedDBAgent.cpp
r239254 r239273 69 69 #include <wtf/NeverDestroyed.h> 70 70 #include <wtf/Vector.h> 71 #include <wtf/text/StringConcatenateNumbers.h>72 71 73 72 using JSON::ArrayOf; … … 713 712 ASSERT(!result.hasException()); 714 713 if (result.hasException()) { 715 m_requestCallback->sendFailure( makeString("Could not clear object store '", m_objectStoreName, "': ", static_cast<int>(result.releaseException().code())));714 m_requestCallback->sendFailure(String::format("Could not clear object store '%s': %d", m_objectStoreName.utf8().data(), result.releaseException().code())); 716 715 return; 717 716 } -
trunk/Source/WebCore/page/MemoryRelease.cpp
r239254 r239273 170 170 String tagName = displayNameForVMTag(i); 171 171 if (!tagName) 172 tagName = makeString("Tag", i);172 tagName = String::format("Tag %u", i); 173 173 RELEASE_LOG(MemoryPressure, "%16s: %lu MB", tagName.latin1().data(), dirty / MB); 174 174 } -
trunk/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm
r239254 r239273 432 432 if (number >= 1024) 433 433 return String::format("%.1f kB", static_cast<double>(number) / 1024); 434 return String:: number(number);434 return String::format("%lu", number); 435 435 } 436 436 … … 470 470 String label = String::format("% 11s: %s", category.name.ascii().data(), formatByteNumber(dirty).ascii().data()); 471 471 if (external) 472 label = label + makeString(" + ", formatByteNumber(external));472 label = label + String::format(" + %s", formatByteNumber(external).ascii().data()); 473 473 if (reclaimable) 474 label = label + makeString(" [", formatByteNumber(reclaimable), ']');474 label = label + String::format(" [%s]", formatByteNumber(reclaimable).ascii().data()); 475 475 476 476 // FIXME: Show size/capacity of GC heap. … … 481 481 482 482 MonotonicTime now = MonotonicTime::now(); 483 showText(context, 10, y + 10, colorForLabels, " Eden GC: " + gcTimerString(data.timeOfNextEdenCollection, now));484 showText(context, 10, y + 20, colorForLabels, " Full GC: " + gcTimerString(data.timeOfNextFullCollection, now));483 showText(context, 10, y + 10, colorForLabels, String::format(" Eden GC: %s", gcTimerString(data.timeOfNextEdenCollection, now).ascii().data())); 484 showText(context, 10, y + 20, colorForLabels, String::format(" Full GC: %s", gcTimerString(data.timeOfNextFullCollection, now).ascii().data())); 485 485 486 486 drawCpuHistory(context, viewBounds.size.width - 70, 0, viewBounds.size.height, data.cpu); -
trunk/Source/WebCore/page/cocoa/ResourceUsageThreadCocoa.mm
r239254 r239273 36 36 #include <pal/spi/cocoa/MachVMSPI.h> 37 37 #include <wtf/MachSendRight.h> 38 #include <wtf/text/StringConcatenateNumbers.h>39 38 40 39 namespace WebCore { … … 64 63 String tagName = displayNameForVMTag(i); 65 64 if (!tagName) 66 tagName = makeString("Tag", i);65 tagName = String::format("Tag %u", i); 67 66 WTFLogAlways(" %02X %16s %10ld %10ld %10ld", 68 67 i, -
trunk/Source/WebCore/platform/animation/TimingFunction.cpp
r239254 r239273 31 31 #include "StyleProperties.h" 32 32 #include "UnitBezier.h" 33 #include <wtf/text/StringConcatenateNumbers.h>34 33 #include <wtf/text/TextStream.h> 35 34 … … 183 182 auto& function = downcast<StepsTimingFunction>(*this); 184 183 if (!function.stepAtStart()) 185 return makeString("steps(", function.numberOfSteps(), ')');184 return String::format("steps(%d)", function.numberOfSteps()); 186 185 } 187 186 -
trunk/Source/WebCore/platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
r239254 r239273 181 181 { 182 182 if (m_assetTrack) 183 return AtomicString::number([m_assetTrack trackID]);183 return String::format("%d", [m_assetTrack trackID]); 184 184 if (m_mediaSelectionOption) 185 185 return [[m_mediaSelectionOption->avMediaSelectionOption() optionID] stringValue]; -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.h
r239254 r239273 85 85 MediaSampleAVFObjC(CMSampleBufferRef sample, int trackID) 86 86 : m_sample(sample) 87 , m_id( AtomicString::number(trackID))87 , m_id(String::format("%d", trackID)) 88 88 { 89 89 } -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r239268 r239273 53 53 #include <wtf/SetForScope.h> 54 54 #include <wtf/SystemTracing.h> 55 #include <wtf/text/StringConcatenateNumbers.h>56 55 #include <wtf/text/TextStream.h> 56 #include <wtf/text/WTFString.h> 57 57 58 58 #if PLATFORM(IOS_FAMILY) … … 1102 1102 m_contentsLayer = createPlatformCALayer(PlatformCALayer::LayerTypeLayer, this); 1103 1103 #if ENABLE(TREE_DEBUGGING) 1104 m_contentsLayer->setName( makeString("contents color", m_contentsLayer->layerID()));1104 m_contentsLayer->setName(String::format("contents color %llu", m_contentsLayer->layerID())); 1105 1105 #else 1106 1106 m_contentsLayer->setName("contents color"); … … 2556 2556 m_contentsLayer = createPlatformCALayer(PlatformCALayer::LayerTypeLayer, this); 2557 2557 #if ENABLE(TREE_DEBUGGING) 2558 m_contentsLayer->setName( makeString("contents image", m_contentsLayer->layerID()));2558 m_contentsLayer->setName(String::format("contents image %llu", m_contentsLayer->layerID())); 2559 2559 #else 2560 2560 m_contentsLayer->setName("contents image"); … … 2662 2662 m_contentsClippingLayer->setAnchorPoint(FloatPoint()); 2663 2663 #if ENABLE(TREE_DEBUGGING) 2664 m_contentsClippingLayer->setName( makeString("contents clipping", m_contentsClippingLayer->layerID()));2664 m_contentsClippingLayer->setName(String::format("contents clipping %llu", m_contentsClippingLayer->layerID())); 2665 2665 #else 2666 2666 m_contentsClippingLayer->setName("contents clipping"); … … 3146 3146 bool valuesOK; 3147 3147 RefPtr<PlatformCAAnimation> caAnimation; 3148 String keyPath = makeString("filters.filter_", animationIndex, '.', PlatformCAFilters::animatedFilterPropertyName(filterOp, internalFilterPropertyIndex));3148 String keyPath = String::format("filters.filter_%d.%s", animationIndex, PlatformCAFilters::animatedFilterPropertyName(filterOp, internalFilterPropertyIndex)); 3149 3149 3150 3150 if (isKeyframe) { … … 3904 3904 resultLayer = cloneLayer(sourceLayer, cloneLevel); 3905 3905 #if ENABLE(TREE_DEBUGGING) 3906 resultLayer->setName( makeString("clone ", cloneID[0U], " of ", sourceLayer->layerID()));3906 resultLayer->setName(String::format("clone %d of %llu", cloneID[0U], sourceLayer->layerID())); 3907 3907 #else 3908 3908 resultLayer->setName("clone of " + m_name); -
trunk/Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp
r239254 r239273 45 45 #include <math.h> 46 46 #include <wtf/UUID.h> 47 #include <wtf/text/String ConcatenateNumbers.h>47 #include <wtf/text/StringView.h> 48 48 49 49 namespace WebCore { … … 368 368 auto size = this->size(); 369 369 statsLocation.move(0, m_statsFontSize); 370 string = makeString("Size: ", size.width(), " x ", size.height());370 string = String::format("Size: %u x %u", size.width(), size.height()); 371 371 context.drawText(statsFont, TextRun((StringView(string))), statsLocation); 372 372 373 373 if (mockCamera()) { 374 374 statsLocation.move(0, m_statsFontSize); 375 string = makeString("Preset size: ", captureSize.width(), " x ", captureSize.height());375 string = String::format("Preset size: %u x %u", captureSize.width(), captureSize.height()); 376 376 context.drawText(statsFont, TextRun((StringView(string))), statsLocation); 377 377 … … 394 394 break; 395 395 } 396 string = makeString("Camera:", camera);396 string = String::format("Camera: %s", camera); 397 397 statsLocation.move(0, m_statsFontSize); 398 398 context.drawText(statsFont, TextRun((StringView(string))), statsLocation); -
trunk/Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp
r239254 r239273 50 50 MockMediaSample(const MockSampleBox& box) 51 51 : m_box(box) 52 , m_id(String:: number(box.trackID()))52 , m_id(String::format("%d", box.trackID())) 53 53 { 54 54 } -
trunk/Source/WebCore/platform/network/ParsedContentRange.cpp
r239254 r239273 28 28 29 29 #include <wtf/StdLibExtras.h> 30 #include <wtf/text/ StringConcatenateNumbers.h>30 #include <wtf/text/WTFString.h> 31 31 32 32 namespace WebCore { … … 128 128 return String(); 129 129 if (m_instanceLength == UnknownLength) 130 return makeString("bytes ", m_firstBytePosition, '-', m_lastBytePosition, "/*");131 return makeString("bytes ", m_firstBytePosition, '-', m_lastBytePosition, '/', m_instanceLength);130 return String::format("bytes %" PRId64 "-%" PRId64 "/*", m_firstBytePosition, m_lastBytePosition); 131 return String::format("bytes %" PRId64 "-%" PRId64 "/%" PRId64, m_firstBytePosition, m_lastBytePosition, m_instanceLength); 132 132 } 133 133 -
trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp
r239254 r239273 31 31 #include <wtf/ProcessID.h> 32 32 #include <wtf/ProcessPrivilege.h> 33 #include <wtf/text/StringConcatenateNumbers.h>34 33 35 34 #if PLATFORM(COCOA) … … 37 36 #include "ResourceRequest.h" 38 37 #endif 39 40 38 #if USE(CFURLCONNECTION) 41 42 39 #include "Cookie.h" 43 40 #include "CookieRequestHeaderFieldProxy.h" … … 51 48 #include <wtf/URL.h> 52 49 #include <wtf/cf/TypeCastsCF.h> 50 #include <wtf/text/WTFString.h> 53 51 54 52 enum { … … 64 62 }; 65 63 64 #if COMPILER(CLANG) 66 65 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 66 #endif 67 67 DECLARE_CF_TYPE_TRAIT(CFHTTPCookie); 68 #if COMPILER(CLANG) 68 69 ALLOW_DEPRECATED_DECLARATIONS_END 70 #endif 69 71 70 72 #undef DECLARE_CF_TYPE_TRAIT 71 72 73 } // namespace WTF 73 74 74 #endif // USE(CFURLCONNECTION)75 #endif 75 76 76 77 namespace WebCore { … … 132 133 133 134 #if !PLATFORM(COCOA) 134 135 135 static CFURLStorageSessionRef createPrivateStorageSession(CFStringRef identifier, CFURLStorageSessionRef defaultStorageSession) 136 136 { … … 166 166 return storageSession; 167 167 } 168 169 168 #endif 170 169 … … 172 171 { 173 172 // Session name should be short enough for shared memory region name to be under the limit, otehrwise sandbox rules won't work (see <rdar://problem/13642852>). 174 String sessionName = makeString("WebKit Test-", getCurrentProcessID());173 String sessionName = String::format("WebKit Test-%u", static_cast<uint32_t>(getCurrentProcessID())); 175 174 176 175 RetainPtr<CFURLStorageSessionRef> session; … … 257 256 258 257 #if !PLATFORM(COCOA) 259 260 258 void NetworkStorageSession::setCookies(const Vector<Cookie>&, const URL&, const URL&) 261 259 { 262 260 // FIXME: Implement this. <https://webkit.org/b/156298> 263 261 } 264 265 #endif 262 #endif 263 264 } // namespace WebCore 266 265 267 266 #if USE(CFURLCONNECTION) 267 268 namespace WebCore { 268 269 269 270 static const CFStringRef s_setCookieKeyCF = CFSTR("Set-Cookie"); … … 518 519 } 519 520 521 } // namespace WebCore 522 520 523 #endif // USE(CFURLCONNECTION) 521 522 } // namespace WebCore -
trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp
r239254 r239273 47 47 { 48 48 const char* functionName = (const char*)sqlite3_user_data(context); 49 sqlite3_result_error(context, makeString("Function ", functionName, " is unauthorized").utf8().data(), -1); 49 String errorMessage = String::format("Function %s is unauthorized", functionName); 50 sqlite3_result_error(context, errorMessage.utf8().data(), -1); 50 51 } 51 52 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r239254 r239273 1302 1302 1303 1303 if (!layer.renderer().style().hasAutoZIndex()) 1304 logString.append( makeString(" z-index: ", layer.renderer().style().zIndex()));1304 logString.append(String::format(" z-index: %d", layer.renderer().style().zIndex())); 1305 1305 1306 1306 logString.appendLiteral(" ("); -
trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp
r239254 r239273 46 46 #include <wtf/persistence/PersistentDecoder.h> 47 47 #include <wtf/persistence/PersistentEncoder.h> 48 #include <wtf/text/StringConcatenateNumbers.h>49 48 50 49 namespace WebCore { … … 203 202 if (sqliteResult == SQLITE_DONE) { 204 203 if (!m_database->executeCommand(recordsTableSchema())) 205 return makeString("Could not create Records table in database (", m_database->lastError(), ") - ", m_database->lastErrorMsg());204 return String::format("Could not create Records table in database (%i) - %s", m_database->lastError(), m_database->lastErrorMsg()); 206 205 return { }; 207 206 } … … 360 359 SQLiteStatement sql(*m_database, "SELECT * FROM Records;"_s); 361 360 if (sql.prepare() != SQLITE_OK) 362 return makeString("Failed to prepare statement to retrieve registrations from records table (", m_database->lastError(), ") - ", m_database->lastErrorMsg());361 return String::format("Failed to prepare statement to retrieve registrations from records table (%i) - %s", m_database->lastError(), m_database->lastErrorMsg()); 363 362 364 363 int result = sql.step(); … … 410 409 411 410 if (result != SQLITE_DONE) 412 return makeString("Failed to import at least one registration from records table (", m_database->lastError(), ") - ", m_database->lastErrorMsg());411 return String::format("Failed to import at least one registration from records table (%i) - %s", m_database->lastError(), m_database->lastErrorMsg()); 413 412 414 413 return { }; -
trunk/Source/WebKit/ChangeLog
r239266 r239273 1 2018-12-17 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r239254. 4 5 This broke the Windows 10 Debug build 6 7 Reverted changeset: 8 9 "Replace many uses of String::format with more type-safe 10 alternatives" 11 https://bugs.webkit.org/show_bug.cgi?id=192742 12 https://trac.webkit.org/changeset/239254 13 1 14 2018-12-17 David Kilzer <ddkilzer@apple.com> 2 15 -
trunk/Source/WebKit/Shared/WebMemorySampler.cpp
r239254 r239273 33 33 #include <wtf/text/CString.h> 34 34 #include <wtf/text/StringBuilder.h> 35 #include <wtf/text/StringConcatenateNumbers.h>36 35 37 36 namespace WebKit { … … 144 143 void WebMemorySampler::writeHeaders() 145 144 { 146 String processDetails = makeString("Process: ", processName(), " Pid: ", getCurrentProcessID(), '\n');145 String processDetails = String::format("Process: %s Pid: %d\n", processName().utf8().data(), getCurrentProcessID()); 147 146 148 147 CString utf8String = processDetails.utf8(); -
trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalAuthenticator.mm
r239254 r239273 192 192 }; 193 193 m_connection->getUserConsent( 194 "Allow " + requestData().creationOptions.rp.id + " to create a public key credential for " + requestData().creationOptions.user.name,194 String::format("Allow %s to create a public key credential for %s", requestData().creationOptions.rp.id.utf8().data(), requestData().creationOptions.user.name.utf8().data()), 195 195 WTFMove(callback)); 196 196 #endif // !PLATFORM(IOS_FAMILY) -
trunk/Source/WebKit/UIProcess/WebInspectorUtilities.cpp
r239254 r239273 34 34 #include <wtf/HashMap.h> 35 35 #include <wtf/NeverDestroyed.h> 36 #include <wtf/text/StringConcatenateNumbers.h>37 36 38 37 namespace WebKit { … … 59 58 String inspectorPageGroupIdentifierForPage(WebPageProxy* page) 60 59 { 61 return makeString("__WebInspectorPageGroupLevel", inspectorLevelForPage(page), "__");60 return String::format("__WebInspectorPageGroupLevel%u__", inspectorLevelForPage(page)); 62 61 } 63 62 -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r239254 r239273 42 42 #include "GamepadData.h" 43 43 #include "HighPerformanceGraphicsUsageSampler.h" 44 #if ENABLE(LEGACY_CUSTOM_PROTOCOL_MANAGER) 45 #include "LegacyCustomProtocolManagerMessages.h" 46 #endif 44 47 #include "LogInitialization.h" 45 48 #include "Logging.h" … … 95 98 #include <wtf/WallTime.h> 96 99 #include <wtf/text/StringBuilder.h> 97 #include <wtf/text/StringConcatenateNumbers.h>98 99 #if ENABLE(LEGACY_CUSTOM_PROTOCOL_MANAGER)100 #include "LegacyCustomProtocolManagerMessages.h"101 #endif102 100 103 101 #if ENABLE(SERVICE_CONTROLS) … … 1020 1018 SandboxExtension::Handle sampleLogSandboxHandle; 1021 1019 WallTime now = WallTime::now(); 1022 String sampleLogFilePath = makeString("WebProcess", static_cast<unsigned long long>(now.secondsSinceEpoch().seconds()), "pid", process->processIdentifier());1020 String sampleLogFilePath = String::format("WebProcess%llupid%d", static_cast<unsigned long long>(now.secondsSinceEpoch().seconds()), process->processIdentifier()); 1023 1021 sampleLogFilePath = SandboxExtension::createHandleForTemporaryFile(sampleLogFilePath, SandboxExtension::Type::ReadWrite, sampleLogSandboxHandle); 1024 1022 … … 1577 1575 SandboxExtension::Handle sampleLogSandboxHandle; 1578 1576 WallTime now = WallTime::now(); 1579 String sampleLogFilePath = makeString("WebProcess", static_cast<unsigned long long>(now.secondsSinceEpoch().seconds()));1577 String sampleLogFilePath = String::format("WebProcess%llu", static_cast<unsigned long long>(now.secondsSinceEpoch().seconds())); 1580 1578 sampleLogFilePath = SandboxExtension::createHandleForTemporaryFile(sampleLogFilePath, SandboxExtension::Type::ReadWrite, sampleLogSandboxHandle); 1581 1579 -
trunk/Tools/ChangeLog
r239266 r239273 1 2018-12-17 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r239254. 4 5 This broke the Windows 10 Debug build 6 7 Reverted changeset: 8 9 "Replace many uses of String::format with more type-safe 10 alternatives" 11 https://bugs.webkit.org/show_bug.cgi?id=192742 12 https://trac.webkit.org/changeset/239254 13 1 14 2018-12-17 David Kilzer <ddkilzer@apple.com> 2 15 -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r239254 r239273 56 56 #include <wtf/text/CString.h> 57 57 #include <wtf/text/StringBuilder.h> 58 #include <wtf/text/StringConcatenateNumbers.h>59 58 60 59 namespace WTR { … … 815 814 816 815 if (callbackMap().contains(index)) { 817 InjectedBundle::singleton().outputText( makeString("FAIL: Tried to install a second TestRunner callback for the same event (id ", index, ")\n\n"));816 InjectedBundle::singleton().outputText(String::format("FAIL: Tried to install a second TestRunner callback for the same event (id %d)\n\n", index)); 818 817 return; 819 818 } -
trunk/Tools/WebKitTestRunner/TestController.cpp
r239254 r239273 79 79 #include <wtf/UUID.h> 80 80 #include <wtf/text/CString.h> 81 #include <wtf/text/ StringConcatenateNumbers.h>81 #include <wtf/text/WTFString.h> 82 82 83 83 #if PLATFORM(COCOA) … … 2062 2062 std::string host = toSTD(adoptWK(WKProtectionSpaceCopyHost(protectionSpace)).get()); 2063 2063 int port = WKProtectionSpaceGetPort(protectionSpace); 2064 String message = makeString(host.c_str(), ':', port, " - didReceiveAuthenticationChallenge - ", toString(authenticationScheme), " - ");2064 String message = String::format("%s:%d - didReceiveAuthenticationChallenge - %s - ", host.c_str(), port, toString(authenticationScheme)); 2065 2065 if (!m_handlesAuthenticationChallenges) 2066 2066 message.append("Simulating cancelled authentication sheet\n"); 2067 2067 else 2068 message.append( "Responding with " + m_authenticationUsername + ":" + m_authenticationPassword + "\n");2068 message.append(String::format("Responding with %s:%s\n", m_authenticationUsername.utf8().data(), m_authenticationPassword.utf8().data())); 2069 2069 m_currentInvocation->outputText(message); 2070 2070 … … 2164 2164 { 2165 2165 if (m_shouldLogDownloadCallbacks) { 2166 m_currentInvocation->outputText("Download failed.\n"_s); 2166 String message = String::format("Download failed.\n"); 2167 m_currentInvocation->outputText(message); 2167 2168 2168 2169 WKRetainPtr<WKStringRef> errorDomain = adoptWK(WKErrorCopyDomain(error));
Note: See TracChangeset
for help on using the changeset viewer.