Bug 40307

Summary: [GTK] DragDataGtk should use DataObjectGtk as the platformDragData
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 30623, 39843    
Attachments:
Description Flags
Patch
none
Patch with Eric's suggestions none

Description Martin Robinson 2010-06-08 10:25:28 PDT
DataObjectGtk contains the current state of a drop, so it should be used as the platformDragData in DataObjectGtk.
Comment 1 Martin Robinson 2010-06-08 11:06:45 PDT
Created attachment 58161 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-06-12 19:06:04 PDT
Comment on attachment 58161 [details]
Patch

WebCore/platform/DragData.h: 
 +  typedef void* DragDataRef;
Can't this just be class DataObjectGtk; instead of having to include the header?

WebCore/platform/gtk/DragDataGtk.cpp:93
 +      RefPtr<DocumentFragment> fragment(createFragmentFromMarkup(document, m_platformDragData->markup(), ""));
Why store this in a ref ptr at all?
Comment 3 Martin Robinson 2010-06-14 17:49:43 PDT
Created attachment 58735 [details]
Patch with Eric's suggestions
Comment 4 Martin Robinson 2010-06-14 17:50:28 PDT
(In reply to comment #2)

Thank you for your review. I've incorporated both of your suggestions in a new patch.
Comment 5 Xan Lopez 2010-06-29 05:21:55 PDT
Comment on attachment 58735 [details]
Patch with Eric's suggestions

Correctomundo.
Comment 6 Martin Robinson 2010-06-29 08:38:24 PDT
Comment on attachment 58735 [details]
Patch with Eric's suggestions

Clearing flags on attachment: 58735

Committed r62124: <http://trac.webkit.org/changeset/62124>
Comment 7 Martin Robinson 2010-06-29 08:38:29 PDT
All reviewed patches have been landed.  Closing bug.