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

Unified Diff: Source/wtf/text/StringBuilder.h

Issue 124943003: Remove 'String::append' from some of the blink source. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments Created 6 years, 11 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
Index: Source/wtf/text/StringBuilder.h
diff --git a/Source/wtf/text/StringBuilder.h b/Source/wtf/text/StringBuilder.h
old mode 100644
new mode 100755
index 3f78ed03b1a51a4e5a181a411f33f5fd339abbc2..292359b438d94e61374eac77908ce33d5a195100
--- a/Source/wtf/text/StringBuilder.h
+++ b/Source/wtf/text/StringBuilder.h
@@ -260,6 +260,8 @@ public:
bool is8Bit() const { return m_is8Bit; }
+ unsigned sizeInBytes() const { return length() * (is8Bit() ? sizeof(LChar) : sizeof(UChar)); }
+
void clear()
{
m_length = 0;
« Source/core/fetch/CSSStyleSheetResource.cpp ('K') | « Source/platform/network/HTTPParsers.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698