Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp

Issue 2054643003: Remove duplication of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stop deleting m_image at clearImage() Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
diff --git a/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp b/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
index ecb5d7bca0f8caa79ad4686c9f0d1d2fc846845f..65401f06b1c01075bc1b60b188d6a0593e0c4d6e 100644
--- a/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
+++ b/third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp
@@ -117,7 +117,7 @@ static xmlDocPtr docLoaderFunc(
// We don't specify an encoding here. Neither Gecko nor WinIE respects
// the encoding specified in the HTTP headers.
- SharedBuffer* data = resource->resourceBuffer();
+ RefPtr<SharedBuffer> data = resource->resourceBuffer();
xmlDocPtr doc = data ? xmlReadMemory(data->data(), data->size(), (const char*)uri, 0, options) : nullptr;
xmlSetStructuredErrorFunc(0, 0);

Powered by Google App Engine