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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp

Issue 2054643003: Remove duplication of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) Created 4 years, 5 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/clipboard/DataTransfer.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
index ae8a6a4d8f6794a56f3d2ee4f46b174710529942..d264ad2b99ac9b7ce2837860c1b96b6669ebb4b4 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -280,7 +280,7 @@ static void writeImageToDataObject(DataObject* dataObject, Element* element, con
if (!cachedImage || !cachedImage->getImage() || !cachedImage->isLoaded())
return;
- SharedBuffer* imageBuffer = cachedImage->getImage()->data();
+ RefPtr<SharedBuffer> imageBuffer = cachedImage->getImage()->data();
if (!imageBuffer || !imageBuffer->size())
return;
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp ('k') | third_party/WebKit/Source/core/fetch/ImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698