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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.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. 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/bindings/core/v8/ScriptStreamer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
index d286f919e5dcdc6aed17a63e4b6efa00d9db202a..2a5d141829f681c4bfc2cd5cd6ed919159c70c75 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
@@ -299,8 +299,7 @@ private:
if (!m_resourceBuffer) {
// We don't have a buffer yet. Try to get it from the resource.
- SharedBuffer* buffer = streamer->resource()->resourceBuffer();
- m_resourceBuffer = RefPtr<SharedBuffer>(buffer);
+ m_resourceBuffer = streamer->resource()->resourceBuffer();
}
fetchDataFromResourceBuffer(lengthOfBOM);

Powered by Google App Engine
This is Rietveld 408576698