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

Unified Diff: Source/core/page/DragState.h

Issue 169323002: Oilpan: Move core/clipboard/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: Source/core/page/DragState.h
diff --git a/Source/core/page/DragState.h b/Source/core/page/DragState.h
index 6b8665771701fca6bc5cf72d6a3afb2220b26d78..28083ed7710ff5f08b3c467bb0f0c0b247a2060e 100644
--- a/Source/core/page/DragState.h
+++ b/Source/core/page/DragState.h
@@ -35,14 +35,19 @@ namespace WebCore {
class Clipboard;
class Node;
-struct DragState {
+class DragState : public RefCountedWillBeGarbageCollectedFinalized<DragState> {
sof 2014/02/19 14:13:59 Could this be NoBaseWillBeGarbageCollectedFinalize
Mads Ager (chromium) 2014/02/19 14:43:34 Good catch, yes, it should be!
WTF_MAKE_NONCOPYABLE(DragState);
- WTF_MAKE_FAST_ALLOCATED;
+ DECLARE_GC_INFO;
public:
DragState() { }
RefPtr<Node> m_dragSrc; // element that may be a drag source, for the current mouse gesture
DragSourceAction m_dragType;
- RefPtr<Clipboard> m_dragClipboard; // used on only the source side of dragging
+ RefPtrWillBeMember<Clipboard> m_dragClipboard; // used on only the source side of dragging
+
+ void trace(Visitor* visitor)
+ {
+ visitor->trace(m_dragClipboard);
+ }
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698