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

Unified Diff: Source/core/page/EventHandler.cpp

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/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index cf16660a6b045b4a2b1d4b08e4effbe9b3232974..92c04d1f29fa8b7f5c42d5f4e6a7bf1caa288659 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -307,10 +307,12 @@ EventHandler::~EventHandler()
ASSERT(!m_fakeMouseMoveEventTimer.isActive());
}
+DEFINE_GC_INFO(DragState);
+
DragState& EventHandler::dragState()
{
- DEFINE_STATIC_LOCAL(DragState, state, ());
- return state;
+ DEFINE_STATIC_LOCAL(Persistent<DragState>, state, ());
+ return *state;
}
void EventHandler::clear()
@@ -4000,7 +4002,7 @@ bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestR
return false;
}
-PassRefPtr<Clipboard> EventHandler::createDraggingClipboard() const
+PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const
{
return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObject::create());
}

Powered by Google App Engine
This is Rietveld 408576698