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 7c697ae10b064483229b44df845eb589e9c4c1f7..167017b3cf9ab610e11ca1778377c9da36ae37dc 100644 |
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp |
@@ -85,9 +85,9 @@ const CompressibleString& ScriptResource::script() |
ASSERT(!isPurgeable()); |
ASSERT(isLoaded()); |
- if (m_script.isNull() && m_data) { |
+ if (m_script.isNull() && data()) { |
String script = decodedText(); |
- m_data.clear(); |
+ 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! |