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

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 43d96fa010d3d273a657f943bb249de7923a33aa..827f3b5d0490a7643876466a29142f3cb7bc8f67 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -306,10 +306,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()
@@ -3995,7 +3997,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