Changeset 173212 in webkit
- Timestamp:
- Sep 3, 2014 11:42:54 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r173209 r173212 1 2014-09-03 Joseph Pecoraro <pecoraro@apple.com> 2 3 Use StringBuilder append(char) and appendLiteral in more places 4 https://bugs.webkit.org/show_bug.cgi?id=136470 5 6 Reviewed by Andreas Kling. 7 8 * Modules/indexeddb/IDBKeyData.cpp: 9 (WebCore::IDBKeyData::loggingString): 10 * Modules/websockets/WebSocket.cpp: 11 (WebCore::encodeProtocolString): 12 * Modules/websockets/WebSocketExtensionDispatcher.cpp: 13 (WebCore::WebSocketExtensionDispatcher::createHeaderValue): 14 (WebCore::WebSocketExtensionDispatcher::appendAcceptedExtension): 15 * Modules/websockets/WebSocketHandshake.cpp: 16 (WebCore::WebSocketHandshake::clientLocation): 17 (WebCore::WebSocketHandshake::clientHandshakeMessage): 18 * css/CSSCalculationValue.cpp: 19 (WebCore::buildCssText): 20 * css/CSSComputedStyleDeclaration.cpp: 21 (WebCore::CSSComputedStyleDeclaration::cssText): 22 * css/CSSMediaRule.cpp: 23 (WebCore::CSSMediaRule::cssText): 24 * css/CSSSelectorList.cpp: 25 (WebCore::CSSSelectorList::selectorsText): 26 * css/CSSSupportsRule.cpp: 27 (WebCore::CSSSupportsRule::cssText): 28 * css/MediaQuery.cpp: 29 (WebCore::MediaQuery::serialize): 30 * editing/MarkupAccumulator.cpp: 31 (WebCore::MarkupAccumulator::generateUniquePrefix): 32 * editing/markup.cpp: 33 (WebCore::urlToMarkup): 34 * fileapi/FileReaderLoader.cpp: 35 (WebCore::FileReaderLoader::convertToDataURL): 36 * html/EmailInputType.cpp: 37 (WebCore::EmailInputType::sanitizeValue): 38 * html/FormController.cpp: 39 (WebCore::recordFormStructure): 40 * html/parser/XSSAuditorDelegate.cpp: 41 (WebCore::buildConsoleError): 42 * html/track/WebVTTParser.cpp: 43 (WebCore::WebVTTParser::collectCueText): 44 * mathml/MathMLMencloseElement.cpp: 45 (WebCore::MathMLMencloseElement::longDivLeftPadding): 46 * page/PageSerializer.cpp: 47 (WebCore::SerializerMarkupAccumulator::appendElement): 48 * page/SecurityOrigin.cpp: 49 (WebCore::SecurityOrigin::toRawString): 50 * page/scrolling/ScrollingCoordinator.cpp: 51 (WebCore::ScrollingCoordinator::synchronousScrollingReasonsAsText): 52 * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm: 53 (WebCore::logThreadedScrollingMode): 54 * platform/PODInterval.h: 55 (WebCore::PODInterval::toString): 56 * platform/PODRedBlackTree.h: 57 (WebCore::PODRedBlackTree::dumpFromNode): 58 * platform/UUID.cpp: 59 (WebCore::createCanonicalUUIDString): 60 * platform/network/ProxyServer.cpp: 61 (WebCore::appendProxyServerString): 62 (WebCore::toString): 63 * platform/text/DateTimeFormat.cpp: 64 (WebCore::DateTimeFormat::quoteAndAppendLiteral): 65 * platform/text/PlatformLocale.cpp: 66 (WebCore::DateTimeStringBuilder::zeroPadString): 67 (WebCore::Locale::convertFromLocalizedNumber): 68 * platform/text/TextStream.cpp: 69 (WebCore::TextStream::operator<<): 70 * rendering/RenderListMarker.cpp: 71 (WebCore::listMarkerText): 72 * testing/Internals.cpp: 73 (WebCore::Internals::parserMetaData): 74 (WebCore::Internals::getCurrentCursorInfo): 75 1 76 2014-09-03 Bear Travis <betravis@adobe.com> 2 77 -
trunk/Source/WebCore/Modules/indexeddb/IDBKeyData.cpp
r166047 r173212 267 267 result.append(arrayValue[i].loggingString()); 268 268 if (i < arrayValue.size() - 1) 269 result.append (", ");269 result.appendLiteral(", "); 270 270 } 271 result.append (" }");271 result.appendLiteral(" }"); 272 272 return result.toString(); 273 273 } -
trunk/Source/WebCore/Modules/websockets/WebSocket.cpp
r170774 r173212 98 98 builder.append(String::format("\\u%04X", protocol[i])); 99 99 else if (protocol[i] == 0x5c) 100 builder.append ("\\\\");100 builder.appendLiteral("\\\\"); 101 101 else 102 102 builder.append(protocol[i]); -
trunk/Source/WebCore/Modules/websockets/WebSocketExtensionDispatcher.cpp
r130612 r173212 70 70 builder.append(m_processors[0]->handshakeString()); 71 71 for (size_t i = 1; i < numProcessors; ++i) { 72 builder.append (", ");72 builder.appendLiteral(", "); 73 73 builder.append(m_processors[i]->handshakeString()); 74 74 } … … 79 79 { 80 80 if (!m_acceptedExtensionsBuilder.isEmpty()) 81 m_acceptedExtensionsBuilder.append (", ");81 m_acceptedExtensionsBuilder.appendLiteral(", "); 82 82 m_acceptedExtensionsBuilder.append(extensionToken); 83 83 // FIXME: Should use ListHashSet to keep the order of the parameters. 84 84 for (HashMap<String, String>::const_iterator iterator = extensionParameters.begin(); iterator != extensionParameters.end(); ++iterator) { 85 m_acceptedExtensionsBuilder.append ("; ");85 m_acceptedExtensionsBuilder.appendLiteral("; "); 86 86 m_acceptedExtensionsBuilder.append(iterator->key); 87 87 if (!iterator->value.isNull()) { 88 m_acceptedExtensionsBuilder.append( "=");88 m_acceptedExtensionsBuilder.append('='); 89 89 m_acceptedExtensionsBuilder.append(iterator->value); 90 90 } -
trunk/Source/WebCore/Modules/websockets/WebSocketHandshake.cpp
r170029 r173212 173 173 StringBuilder builder; 174 174 builder.append(m_secure ? "wss" : "ws"); 175 builder.append ("://");175 builder.appendLiteral("://"); 176 176 builder.append(hostName(m_url, m_secure)); 177 177 builder.append(resourceName(m_url)); … … 184 184 StringBuilder builder; 185 185 186 builder.append ("GET ");186 builder.appendLiteral("GET "); 187 187 builder.append(resourceName(m_url)); 188 builder.append (" HTTP/1.1\r\n");188 builder.appendLiteral(" HTTP/1.1\r\n"); 189 189 190 190 Vector<String> fields; … … 227 227 for (size_t i = 0; i < fields.size(); i++) { 228 228 builder.append(fields[i]); 229 builder.append ("\r\n");230 } 231 232 builder.append ("\r\n");229 builder.appendLiteral("\r\n"); 230 } 231 232 builder.appendLiteral("\r\n"); 233 233 234 234 return builder.toString().utf8(); -
trunk/Source/WebCore/css/CSSCalculationValue.cpp
r172192 r173212 160 160 { 161 161 StringBuilder result; 162 result.append ("calc");162 result.appendLiteral("calc"); 163 163 bool expressionHasSingleTerm = expression[0] != '('; 164 164 if (expressionHasSingleTerm) -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r173156 r173212 1279 1279 result.append(' '); 1280 1280 result.append(getPropertyName(computedProperties[i])); 1281 result.append (": ", 2);1281 result.appendLiteral(": "); 1282 1282 result.append(getPropertyValue(computedProperties[i])); 1283 1283 result.append(';'); -
trunk/Source/WebCore/css/CSSMediaRule.cpp
r165676 r173212 52 52 { 53 53 StringBuilder result; 54 result.append ("@media ");54 result.appendLiteral("@media "); 55 55 if (mediaQueries()) { 56 56 result.append(mediaQueries()->mediaText()); -
trunk/Source/WebCore/css/CSSSelectorList.cpp
r165921 r173212 126 126 for (const CSSSelector* s = first(); s; s = next(s)) { 127 127 if (s != first()) 128 result.append (", ");128 result.appendLiteral(", "); 129 129 result.append(s->selectorText()); 130 130 } -
trunk/Source/WebCore/css/CSSSupportsRule.cpp
r148921 r173212 51 51 StringBuilder result; 52 52 53 result.append ("@supports ");53 result.appendLiteral("@supports "); 54 54 result.append(conditionText()); 55 result.append (" {\n");55 result.appendLiteral(" {\n"); 56 56 appendCssTextForItems(result); 57 57 result.append('}'); -
trunk/Source/WebCore/css/MediaQuery.cpp
r170774 r173212 42 42 switch (m_restrictor) { 43 43 case MediaQuery::Only: 44 result.append ("only ");44 result.appendLiteral("only "); 45 45 break; 46 46 case MediaQuery::Not: 47 result.append ("not ");47 result.appendLiteral("not "); 48 48 break; 49 49 case MediaQuery::None: … … 58 58 if (m_mediaType != "all" || m_restrictor != None) { 59 59 result.append(m_mediaType); 60 result.append (" and ");60 result.appendLiteral(" and "); 61 61 } 62 62 63 63 result.append(m_expressions->at(0)->serialize()); 64 64 for (size_t i = 1; i < m_expressions->size(); ++i) { 65 result.append (" and ");65 result.appendLiteral(" and "); 66 66 result.append(m_expressions->at(i)->serialize()); 67 67 } 68 68 } else { 69 69 // If query is invalid, serialized text should turn into "not all". 70 result.append ("not all");70 result.appendLiteral("not all"); 71 71 } 72 72 return result.toString(); -
trunk/Source/WebCore/editing/MarkupAccumulator.cpp
r165699 r173212 494 494 do { 495 495 builder.clear(); 496 builder.append ("NS");496 builder.appendLiteral("NS"); 497 497 builder.appendNumber(++m_prefixLevel); 498 498 const AtomicString& name = builder.toAtomicString(); -
trunk/Source/WebCore/editing/markup.cpp
r171941 r173212 859 859 { 860 860 StringBuilder markup; 861 markup.append ("<a href=\"");861 markup.appendLiteral("<a href=\""); 862 862 markup.append(url.string()); 863 markup.append ("\">");863 markup.appendLiteral("\">"); 864 864 MarkupAccumulator::appendCharactersReplacingEntities(markup, title, 0, title.length(), EntityMaskInPCDATA); 865 markup.append ("</a>");865 markup.appendLiteral("</a>"); 866 866 return markup.toString(); 867 867 } -
trunk/Source/WebCore/fileapi/FileReaderLoader.cpp
r170381 r173212 327 327 { 328 328 StringBuilder builder; 329 builder.append ("data:");329 builder.appendLiteral("data:"); 330 330 331 331 if (!m_bytesLoaded) { … … 335 335 336 336 builder.append(m_dataType); 337 builder.append (";base64,");337 builder.appendLiteral(";base64,"); 338 338 339 339 Vector<char> out; -
trunk/Source/WebCore/html/EmailInputType.cpp
r165607 r173212 103 103 for (unsigned i = 0; i < addresses.size(); ++i) { 104 104 if (i > 0) 105 strippedValue.append( ",");105 strippedValue.append(','); 106 106 strippedValue.append(stripLeadingAndTrailingHTMLSpaces(addresses[i])); 107 107 } -
trunk/Source/WebCore/html/FormController.cpp
r170774 r173212 303 303 const size_t namedControlsToBeRecorded = 2; 304 304 const Vector<FormAssociatedElement*>& controls = form.associatedElements(); 305 builder.append (" [");305 builder.appendLiteral(" ["); 306 306 for (size_t i = 0, namedControls = 0; i < controls.size() && namedControls < namedControlsToBeRecorded; ++i) { 307 307 if (!controls[i]->isFormControlElementWithState()) … … 315 315 namedControls++; 316 316 builder.append(name); 317 builder.append( " ");318 } 319 builder.append( "]");317 builder.append(' '); 318 } 319 builder.append(']'); 320 320 } 321 321 -
trunk/Source/WebCore/html/parser/XSSAuditorDelegate.cpp
r165986 r173212 54 54 { 55 55 StringBuilder message; 56 message.append ("The XSS Auditor ");56 message.appendLiteral("The XSS Auditor "); 57 57 message.append(xssInfo.m_didBlockEntirePage ? "blocked access to" : "refused to execute a script in"); 58 message.append (" '");58 message.appendLiteral(" '"); 59 59 message.append(xssInfo.m_originalURL); 60 message.append ("' because ");60 message.appendLiteral("' because "); 61 61 message.append(xssInfo.m_didBlockEntirePage ? "the source code of a script" : "its source code"); 62 message.append (" was found within the request.");62 message.appendLiteral(" was found within the request."); 63 63 64 64 if (xssInfo.m_didSendCSPHeader) 65 message.append (" The server sent a 'Content-Security-Policy' header requesting this behavior.");65 message.appendLiteral(" The server sent a 'Content-Security-Policy' header requesting this behavior."); 66 66 else if (xssInfo.m_didSendXSSProtectionHeader) 67 message.append (" The server sent an 'X-XSS-Protection' header requesting this behavior.");67 message.appendLiteral(" The server sent an 'X-XSS-Protection' header requesting this behavior."); 68 68 else 69 message.append (" The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.");69 message.appendLiteral(" The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header."); 70 70 71 71 return message.toString(); -
trunk/Source/WebCore/html/track/WebVTTParser.cpp
r170694 r173212 350 350 } 351 351 if (!m_currentContent.isEmpty()) 352 m_currentContent.append( "\n");352 m_currentContent.append('\n'); 353 353 m_currentContent.append(line); 354 354 -
trunk/Source/WebCore/mathml/MathMLMencloseElement.cpp
r170774 r173212 130 130 { 131 131 StringBuilder padding; 132 float fontSize = 0;133 132 String closingBrace = ")"; 134 133 TextRun run(closingBrace.impl(), closingBrace.length()); … … 136 135 if (node && node->renderer()) { 137 136 const Font& font = node->renderer()->style().font(); 138 fontSize = font.width(run); 139 padding.append(String::number(fontSize)); 140 padding.append("px"); 137 padding.appendNumber(font.width(run)); 138 padding.appendLiteral("px"); 141 139 } 142 140 return padding.toString(); -
trunk/Source/WebCore/page/PageSerializer.cpp
r165848 r173212 137 137 138 138 if (element.hasTagName(HTMLNames::headTag)) { 139 out.append ("<meta charset=\"");139 out.appendLiteral("<meta charset=\""); 140 140 out.append(m_document.charset()); 141 out.append ("\">");141 out.appendLiteral("\">"); 142 142 } 143 143 -
trunk/Source/WebCore/page/SecurityOrigin.cpp
r171160 r173212 478 478 result.reserveCapacity(m_protocol.length() + m_host.length() + 10); 479 479 result.append(m_protocol); 480 result.append ("://");480 result.appendLiteral("://"); 481 481 result.append(m_host); 482 482 -
trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
r169733 r173212 396 396 397 397 if (reasons & ScrollingCoordinator::ForcedOnMainThread) 398 stringBuilder.append ("Forced on main thread, ");398 stringBuilder.appendLiteral("Forced on main thread, "); 399 399 if (reasons & ScrollingCoordinator::HasSlowRepaintObjects) 400 stringBuilder.append ("Has slow repaint objects, ");400 stringBuilder.appendLiteral("Has slow repaint objects, "); 401 401 if (reasons & ScrollingCoordinator::HasViewportConstrainedObjectsWithoutSupportingFixedLayers) 402 stringBuilder.append ("Has viewport constrained objects without supporting fixed layers, ");402 stringBuilder.appendLiteral("Has viewport constrained objects without supporting fixed layers, "); 403 403 if (reasons & ScrollingCoordinator::HasNonLayerViewportConstrainedObjects) 404 stringBuilder.append ("Has non-layer viewport-constrained objects, ");404 stringBuilder.appendLiteral("Has non-layer viewport-constrained objects, "); 405 405 if (reasons & ScrollingCoordinator::IsImageDocument) 406 stringBuilder.append ("Is image document, ");406 stringBuilder.appendLiteral("Is image document, "); 407 407 408 408 if (stringBuilder.length()) -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm
r172948 r173212 518 518 519 519 if (synchronousScrollingReasons & ScrollingCoordinator::ForcedOnMainThread) 520 reasonsDescription.append ("forced,");520 reasonsDescription.appendLiteral("forced,"); 521 521 if (synchronousScrollingReasons & ScrollingCoordinator::HasSlowRepaintObjects) 522 reasonsDescription.append ("slow-repaint objects,");522 reasonsDescription.appendLiteral("slow-repaint objects,"); 523 523 if (synchronousScrollingReasons & ScrollingCoordinator::HasViewportConstrainedObjectsWithoutSupportingFixedLayers) 524 reasonsDescription.append ("viewport-constrained objects,");524 reasonsDescription.appendLiteral("viewport-constrained objects,"); 525 525 if (synchronousScrollingReasons & ScrollingCoordinator::HasNonLayerViewportConstrainedObjects) 526 reasonsDescription.append ("non-layer viewport-constrained objects,");526 reasonsDescription.appendLiteral("non-layer viewport-constrained objects,"); 527 527 if (synchronousScrollingReasons & ScrollingCoordinator::IsImageDocument) 528 reasonsDescription.append ("image document,");528 reasonsDescription.appendLiteral("image document,"); 529 529 530 530 // Strip the trailing comma. -
trunk/Source/WebCore/platform/PODInterval.h
r159159 r173212 145 145 builder.append(", maxHigh="); 146 146 builder.append(ValueToString<T>::string(maxHigh())); 147 builder.append( "]");147 builder.append(']'); 148 148 return builder.toString(); 149 149 } -
trunk/Source/WebCore/platform/PODRedBlackTree.h
r162139 r173212 793 793 StringBuilder builder; 794 794 for (int i = 0; i < indentation; i++) 795 builder.append( " ");796 builder.append( "-");795 builder.append(' '); 796 builder.append('-'); 797 797 if (node) { 798 builder.append( " ");798 builder.append(' '); 799 799 builder.append(ValueToString<T>::string(node->data())); 800 800 builder.append((node->color() == Black) ? " (black)" : " (red)"); -
trunk/Source/WebCore/platform/UUID.cpp
r149921 r173212 47 47 builder.reserveCapacity(36); 48 48 appendUnsignedAsHexFixedSize(randomData[0], builder, 8, Lowercase); 49 builder.append( "-");49 builder.append('-'); 50 50 appendUnsignedAsHexFixedSize(randomData[1] >> 16, builder, 4, Lowercase); 51 builder.append ("-4");51 builder.appendLiteral("-4"); 52 52 appendUnsignedAsHexFixedSize(randomData[1] & 0x00000fff, builder, 3, Lowercase); 53 builder.append( "-");53 builder.append('-'); 54 54 appendUnsignedAsHexFixedSize((randomData[2] >> 30) | 0x8, builder, 1, Lowercase); 55 55 appendUnsignedAsHexFixedSize((randomData[2] >> 16) & 0x00000fff, builder, 3, Lowercase); 56 builder.append( "-");56 builder.append('-'); 57 57 appendUnsignedAsHexFixedSize(randomData[2] & 0x0000ffff, builder, 4, Lowercase); 58 58 appendUnsignedAsHexFixedSize(randomData[3], builder, 8, Lowercase); -
trunk/Source/WebCore/platform/network/ProxyServer.cpp
r128014 r173212 35 35 switch (proxyServer.type()) { 36 36 case ProxyServer::Direct: 37 builder.append ("DIRECT");37 builder.appendLiteral("DIRECT"); 38 38 return; 39 39 case ProxyServer::HTTP: 40 40 case ProxyServer::HTTPS: 41 builder.append ("PROXY");41 builder.appendLiteral("PROXY"); 42 42 break; 43 43 case ProxyServer::SOCKS: 44 builder.append ("SOCKS");44 builder.appendLiteral("SOCKS"); 45 45 break; 46 46 } … … 64 64 for (size_t i = 0; i < proxyServers.size(); ++i) { 65 65 if (i) 66 stringBuilder.append ("; ");66 stringBuilder.appendLiteral("; "); 67 67 68 68 appendProxyServerString(stringBuilder, proxyServers[i]); -
trunk/Source/WebCore/platform/text/DateTimeFormat.cpp
r133301 r173212 258 258 259 259 if (literal.find('\'') == notFound) { 260 buffer.append( "'");260 buffer.append('\''); 261 261 buffer.append(literal); 262 buffer.append( "'");262 buffer.append('\''); 263 263 return; 264 264 } … … 269 269 else { 270 270 String escaped = literal.substring(i); 271 escaped.replace( ASCIILiteral("'"), ASCIILiteral("''"));272 buffer.append( "'");271 escaped.replace('\'', "''"); 272 buffer.append('\''); 273 273 buffer.append(escaped); 274 buffer.append( "'");274 buffer.append('\''); 275 275 return; 276 276 } -
trunk/Source/WebCore/platform/text/PlatformLocale.cpp
r162158 r173212 82 82 zeroPaddedStringBuilder.reserveCapacity(width); 83 83 for (size_t i = string.length(); i < width; ++i) 84 zeroPaddedStringBuilder.append( "0");84 zeroPaddedStringBuilder.append('0'); 85 85 zeroPaddedStringBuilder.append(string); 86 86 return zeroPaddedStringBuilder.toString(); … … 312 312 builder.reserveCapacity(input.length()); 313 313 if (isNegative) 314 builder.append( "-");314 builder.append('-'); 315 315 for (unsigned i = startIndex; i < endIndex;) { 316 316 unsigned symbolIndex = matchedDecimalSymbolIndex(input, i); -
trunk/Source/WebCore/platform/text/TextStream.cpp
r173047 r173212 92 92 TextStream& TextStream::operator<<(float f) 93 93 { 94 m_text.append (String::numberToStringFixedWidth(f, 2));94 m_text.appendFixedWidthNumber(f, 2); 95 95 return *this; 96 96 } … … 98 98 TextStream& TextStream::operator<<(double d) 99 99 { 100 m_text.append (String::numberToStringFixedWidth(d, 2));100 m_text.appendFixedWidthNumber(d, 2); 101 101 return *this; 102 102 } -
trunk/Source/WebCore/rendering/RenderListMarker.cpp
r173047 r173212 645 645 } 646 646 if (value < 0) { 647 builder.append ("-0");647 builder.appendLiteral("-0"); 648 648 builder.appendNumber(-value); // -01 to -09 649 649 break; -
trunk/Source/WebCore/testing/Internals.cpp
r173012 r173212 1214 1214 FunctionExecutable* funcExecutable = reinterpret_cast<FunctionExecutable*>(executable); 1215 1215 String inferredName = funcExecutable->inferredName().string(); 1216 result.append ("function \"");1216 result.appendLiteral("function \""); 1217 1217 result.append(inferredName); 1218 result.append( "\"");1218 result.append('"'); 1219 1219 } else if (executable->isEvalExecutable()) 1220 result.append ("eval");1220 result.appendLiteral("eval"); 1221 1221 else { 1222 1222 ASSERT(executable->isProgramExecutable()); 1223 result.append ("program");1224 } 1225 1226 result.append (" { ");1223 result.appendLiteral("program"); 1224 } 1225 1226 result.appendLiteral(" { "); 1227 1227 result.appendNumber(startLine); 1228 result.append( ":");1228 result.append(':'); 1229 1229 result.appendNumber(startColumn); 1230 result.append (" - ");1230 result.appendLiteral(" - "); 1231 1231 result.appendNumber(endLine); 1232 result.append( ":");1232 result.append(':'); 1233 1233 result.appendNumber(endColumn); 1234 result.append (" }");1234 result.appendLiteral(" }"); 1235 1235 1236 1236 return result.toString(); … … 1997 1997 1998 1998 StringBuilder result; 1999 result.append ("type=");1999 result.appendLiteral("type="); 2000 2000 result.append(cursorTypeToString(cursor.type())); 2001 result.append (" hotSpot=");2001 result.appendLiteral(" hotSpot="); 2002 2002 result.appendNumber(cursor.hotSpot().x()); 2003 result.append( ",");2003 result.append(','); 2004 2004 result.appendNumber(cursor.hotSpot().y()); 2005 2005 if (cursor.image()) { 2006 2006 FloatSize size = cursor.image()->size(); 2007 result.append (" image=");2007 result.appendLiteral(" image="); 2008 2008 result.appendNumber(size.width()); 2009 result.append( "x");2009 result.append('x'); 2010 2010 result.appendNumber(size.height()); 2011 2011 } 2012 2012 #if ENABLE(MOUSE_CURSOR_SCALE) 2013 2013 if (cursor.imageScaleFactor() != 1) { 2014 result.append (" scale=");2014 result.appendLiteral(" scale="); 2015 2015 NumberToStringBuffer buffer; 2016 2016 result.append(numberToFixedPrecisionString(cursor.imageScaleFactor(), 8, buffer, true));
Note: See TracChangeset
for help on using the changeset viewer.