| 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 47fbbf9062239523b28255f0ef19787b144b4add..7b3af7d991b44e91877225536487a607c8a99301 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
|
| @@ -89,12 +89,8 @@ const String& ScriptResource::script() {
|
| if (m_script.isNull() && data()) {
|
| String script = decodedText();
|
| clearData();
|
| - // 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());
|
| + setEncodedSizeMemoryUsage(0);
|
| + setDecodedSize(script.charactersSizeInBytes());
|
| m_script = AtomicString(script);
|
| }
|
|
|
|
|