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

Unified Diff: Source/core/fetch/TextResource.cpp

Issue 1122103005: Avoid extra copy of CSS data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/TextResource.cpp
diff --git a/Source/core/fetch/TextResource.cpp b/Source/core/fetch/TextResource.cpp
index 0f1d56d8529c64e1d3b9a2e0a803128710a4c41b..5ec44e320521e772a3ed5da960bfb08142eb9c8f 100644
--- a/Source/core/fetch/TextResource.cpp
+++ b/Source/core/fetch/TextResource.cpp
@@ -35,8 +35,7 @@ String TextResource::decodedText() const
ASSERT(m_data);
String text = m_decoder->decode(m_data->data(), encodedSize());
- text = text + m_decoder->flush();
-
+ text.append(m_decoder->flush());
return text;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698