Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: Source/core/css/resolver/StyleResolverStats.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/parser/BisonCSSParserTest.cpp ('k') | Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolverStats.cpp
diff --git a/Source/core/css/resolver/StyleResolverStats.cpp b/Source/core/css/resolver/StyleResolverStats.cpp
index d427e9c5ba62ca9c4f5bddde020c78e183884e1f..60121683334d05b11b3013311511dd217ae91e56 100644
--- a/Source/core/css/resolver/StyleResolverStats.cpp
+++ b/Source/core/css/resolver/StyleResolverStats.cpp
@@ -60,7 +60,7 @@ String StyleResolverStats::report() const
unsigned sharedStylesRejected = sharedStyleRejectedByUncommonAttributeRules + sharedStyleRejectedBySiblingRules + sharedStyleRejectedByParent;
unsigned sharedStylesUsed = sharedStyleFound - sharedStylesRejected;
- output.append("Style sharing:\n");
+ output.appendLiteral("Style sharing:\n");
output.append(String::format(" %u elements were added to the sharing candidate list.\n", sharedStyleCandidates));
output.append(String::format(" %u calls were made to findSharedStyle, %u found a candidate to share with (%.2f%%).\n", sharedStyleLookups, sharedStyleFound, PERCENT(sharedStyleFound, sharedStyleLookups)));
if (printMissedCandidateCount)
@@ -74,9 +74,9 @@ String StyleResolverStats::report() const
output.append(String::format(" %u of found styles were used for sharing (%.2f%%).\n", sharedStylesUsed, PERCENT(sharedStylesUsed, sharedStyleFound)));
output.append(String::format(" %.2f%% of calls to findSharedStyle returned a shared style.\n", PERCENT(sharedStylesUsed, sharedStyleLookups)));
- output.append("\n");
+ output.append('\n');
- output.append("Matched property cache:\n");
+ output.appendLiteral("Matched property cache:\n");
output.append(String::format(" %u calls to applyMatchedProperties, %u hit the cache (%.2f%%).\n", matchedPropertyApply, matchedPropertyCacheHit, PERCENT(matchedPropertyCacheHit, matchedPropertyApply)));
output.append(String::format(" %u cache hits also shared the inherited style (%.2f%%).\n", matchedPropertyCacheInheritedHit, PERCENT(matchedPropertyCacheInheritedHit, matchedPropertyCacheHit)));
output.append(String::format(" %u styles created in applyMatchedProperties were added to the cache (%.2f%%).\n", matchedPropertyCacheAdded, PERCENT(matchedPropertyCacheAdded, matchedPropertyApply)));
« no previous file with comments | « Source/core/css/parser/BisonCSSParserTest.cpp ('k') | Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698