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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2687193004: Tie DragState to DragController. (Closed)
Patch Set: tidy up DragState resetting Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index b4ff4107dbb5dd67d469fa394220495661fb804c..c762db63118a2e3aa779234d825e5f63202e1c73 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -1229,10 +1229,17 @@ bool DragController::isCopyKeyDown(DragData* dragData) {
#endif
}
+DragState& DragController::dragState() {
+ if (!m_dragState)
+ m_dragState = new DragState;
+ return *m_dragState;
+}
+
DEFINE_TRACE(DragController) {
visitor->trace(m_page);
visitor->trace(m_documentUnderMouse);
visitor->trace(m_dragInitiator);
+ visitor->trace(m_dragState);
visitor->trace(m_fileInputElementUnderMouse);
}
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698