Closed Bug 640946 Opened 9 years ago Closed 9 years ago

Add a method to nsIFormControl or nsIContent to know if an element is natively draggable

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla5

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file)

This has been propsed by Olli in bug 514437 because we currently have a big if condition in nsContentAreaDragDrop.cpp DragDataProducer::Produce.
Actually, I really wonder what is the logic here...
I don't really understand what's the common point between label, fieldset and object that button, input and select don't share... I mean, fieldset isn't really draggable but label is...

Do you have any idea, Olli?
(In reply to comment #2)
> See Bug 453520

Then we should probably not include <progress> in that list I guess.
In addition, for what I understand, we are looking for form controls that can have draggable children, not draggable form controls, right?
Attached patch Patch v1Splinter Review
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
Attachment #519278 - Flags: review?(Olli.Pettay)
Whiteboard: [needs review]
Attachment #519278 - Flags: review?(Olli.Pettay) → review+
Depends on: 563669
Whiteboard: [needs review]
Whiteboard: [ready to land][waits for dependencies]
Pushed:
http://hg.mozilla.org/mozilla-central/rev/2c6ff4aaea85
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [ready to land][waits for dependencies]
Target Milestone: --- → mozilla2.2
You need to log in before you can comment on or make changes to this bug.