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

Unified Diff: third_party/WebKit/Source/core/fetch/ScriptResource.cpp

Issue 2389643002: Reflow comments in core/fetch (Closed)
Patch Set: yoavs comments Created 4 years, 2 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: third_party/WebKit/Source/core/fetch/ScriptResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
index 973e1352c9f9f3332b4a9aec0a8978e047ba00df..47ce997984cfee42e72f885b678b8a9b04129f32 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
@@ -20,8 +20,8 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
- This class provides all functionality needed for loading images, style sheets and html
- pages from the web. It has a memory cache for these objects.
+ This class provides all functionality needed for loading images, style
+ sheets and html pages from the web. It has a memory cache for these objects.
*/
#include "core/fetch/ScriptResource.h"
@@ -90,9 +90,11 @@ const String& ScriptResource::script() {
if (m_script.isNull() && data()) {
String script = decodedText();
clearData();
- // We lie a it here and claim that script counts as encoded data (even though it's really decoded data).
- // That's because the MemoryCache thinks that it can clear out decoded data by calling destroyDecodedData(),
- // but we can't destroy script in destroyDecodedData because that's our only copy of the data!
+ // We lie a bit here and claim that script counts as encoded data (even
+ // though it's really decoded data). That's because the MemoryCache thinks
+ // that it can clear out decoded data by calling destroyDecodedData(), but
+ // we can't destroy script in destroyDecodedData because that's our only
+ // copy of the data!
setEncodedSize(script.charactersSizeInBytes());
m_script = AtomicString(script);
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ScriptResource.h ('k') | third_party/WebKit/Source/core/fetch/StyleSheetResourceClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698