Closed Bug 707448 Opened 13 years ago Closed 13 years ago

Cleanup nsHTMLFormElement::DoSubmitOrReset a bit

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch Patch v1Splinter Review
The assigning to rv is kind of silly.
Attachment #578845 - Flags: review?(mounir)
Flags: in-testsuite-
Comment on attachment 578845 [details] [diff] [review] Patch v1 Review of attachment 578845 [details] [diff] [review]: ----------------------------------------------------------------- Thanks :) ::: content/html/content/src/nsHTMLFormElement.cpp @@ +691,2 @@ > } > + return NS_OK; nit: you could add a warning/error/assertion if we get there: we should only get NS_FORM_RESET and NS_FORM_SUBMIT messages. @@ +696,5 @@ > nsHTMLFormElement::DoReset() > { > // JBK walk the elements[] array instead of form frame controls - bug 34297 > PRUint32 numElements = GetElementCount(); > + for (PRUint32 elementX = 0; elementX < numElements; elementX++) { nit: while changing this line, change |elementX++| to |++elementX|.
Attachment #578845 - Flags: review?(mounir) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → mozilla11
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: