Chromium Code Reviews| Index: Source/core/page/EventHandler.cpp |
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
| index 43d96fa010d3d273a657f943bb249de7923a33aa..c74fb5ff606589c31148c7e77fdb3bfd6663123a 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, (new DragState())); |
|
haraken
2014/02/19 12:05:42
This was a bug. I had to add 'new DragState()'.
|
| + 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()); |
| } |