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

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

Issue 640303002: Enable Oilpan for core/clipboard/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove some slightly pointy edges Created 5 years, 8 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
« no previous file with comments | « Source/core/clipboard/DataTransfer.h ('k') | Source/core/clipboard/DataTransfer.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataTransfer.cpp
diff --git a/Source/core/clipboard/DataTransfer.cpp b/Source/core/clipboard/DataTransfer.cpp
index a17bc1c0dcd6aaa5fce91bb7c7ef723cf6581a6a..1e526185face9b4a15918e262a5bb4928d1eedb0 100644
--- a/Source/core/clipboard/DataTransfer.cpp
+++ b/Source/core/clipboard/DataTransfer.cpp
@@ -105,9 +105,9 @@ static String normalizeType(const String& type, bool* convertToURL = 0)
return cleanType;
}
-PassRefPtrWillBeRawPtr<DataTransfer> DataTransfer::create(DataTransferType type, DataTransferAccessPolicy policy, PassRefPtrWillBeRawPtr<DataObject> dataObject)
+DataTransfer* DataTransfer::create(DataTransferType type, DataTransferAccessPolicy policy, DataObject* dataObject)
{
- return adoptRefWillBeNoop(new DataTransfer(type, policy, dataObject));
+ return new DataTransfer(type, policy, dataObject);
}
DataTransfer::~DataTransfer()
@@ -442,7 +442,7 @@ bool DataTransfer::hasDropZoneType(const String& keyword)
return false;
}
-PassRefPtrWillBeRawPtr<DataTransferItemList> DataTransfer::items()
+DataTransferItemList* DataTransfer::items()
{
// FIXME: According to the spec, we are supposed to return the same collection of items each
// time. We now return a wrapper that always wraps the *same* set of items, so JS shouldn't be
@@ -450,12 +450,12 @@ PassRefPtrWillBeRawPtr<DataTransferItemList> DataTransfer::items()
return DataTransferItemList::create(this, m_dataObject);
}
-PassRefPtrWillBeRawPtr<DataObject> DataTransfer::dataObject() const
+DataObject* DataTransfer::dataObject() const
{
return m_dataObject;
}
-DataTransfer::DataTransfer(DataTransferType type, DataTransferAccessPolicy policy, PassRefPtrWillBeRawPtr<DataObject> dataObject)
+DataTransfer::DataTransfer(DataTransferType type, DataTransferAccessPolicy policy, DataObject* dataObject)
: m_policy(policy)
, m_dropEffect("uninitialized")
, m_effectAllowed("uninitialized")
@@ -526,7 +526,9 @@ String convertDragOperationToDropZoneOperation(DragOperation operation)
DEFINE_TRACE(DataTransfer)
{
visitor->trace(m_dataObject);
+#if ENABLE(OILPAN)
visitor->trace(m_dragImageElement);
+#endif
}
} // namespace blink
« no previous file with comments | « Source/core/clipboard/DataTransfer.h ('k') | Source/core/clipboard/DataTransfer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698