| Summary: | Eliminate DragSession structure | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
| Component: | WebCore Misc. | Assignee: | Alexey Proskuryakov <ap> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | benjamin | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Alexey Proskuryakov
2014-04-09 16:54:29 PDT
Created attachment 229001 [details]
proposed patch
Comment on attachment 229001 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=229001&action=review Looks great. > Source/WebCore/page/DragController.h:65 > + // As computed from the most recent DragData. Not sure the comment is useful. That is pretty much true for all the state of DragController. > Source/WebKit2/UIProcess/WebPageProxy.h:905 > + void resetCurrentDragInformation() { m_currentDragOperation = WebCore::DragOperationNone; m_currentDragIsOverFileInput = false; m_currentDragNumberOfFilesToBeAccepted = 0; } Let's put this in the cpp file or split it over 3 lines. > Source/WebKit2/UIProcess/API/mac/WKView.mm:2251 > + NSInteger numberOfValidItemsForDrop = _data->_page->currentDragNumberOfFilesToBeAccepted(); No need for cast here? > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2783 > + DragOperation resolvedDragOperation; It may be better to create a scope for both cases and define resolvedDragOperation in there. Committed <http://trac.webkit.org/r167074>. Tried to fix Gtk build in <http://trac.webkit.org/r167075>. |