Lines Matching full:form
10 * * Redistributions in binary form must reproduce the above
52 // Gets the encoding for the form.
53 void GetFormEncoding(const HTMLFormElement* form, TextEncoding* encoding)
55 String str(form->getAttribute(HTMLNames::accept_charsetAttr));
64 const Frame* frame = form->document()->frame();
69 bool IsHTTPFormSubmit(const HTMLFormElement* form)
71 String action(form->action());
72 return form->document()->frame()->loader()->completeURL(action.isNull() ? "" : action).protocol() == "http";
75 // If the form does not have an activated submit button, the first submit
77 HTMLFormControlElement* GetButtonToActivate(HTMLFormElement* form)
80 for (Vector<HTMLFormControlElement*>::const_iterator i(form->formElements.begin()); i != form->formElements.end(); ++i) {
125 // Returns true if the form element is in its default state, false otherwise.
126 // The default state is the state of the form element on initial load of the
127 // page, and varies depending upon the form element. For example, a checkbox is
140 // If form has only one text input element, return true. If a valid input
141 // element is not found, return false. Additionally, the form data for all
144 bool HasSuitableTextElement(const HTMLFormElement* form, Vector<char>* encodedString, String* encodingName)
147 GetFormEncoding(form, &encoding);
149 // Need a valid encoding to encode the form elements.
157 for (Vector<HTMLFormControlElement*>::const_iterator i(form->formElements.begin()); i != form->formElements.end(); ++i) {
192 // This form has multiple fields; don't treat it as searchable.
221 WebSearchableFormData::WebSearchableFormData(const WebFormElement& form)
223 RefPtr<HTMLFormElement> formElement = form.operator PassRefPtr<HTMLFormElement>();
234 // The form does not have an active submit button, make the first button
245 // Not a searchable form.