diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/forms/html_form_element.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/forms/html_form_element.h | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/forms/html_form_element.h b/chromium/third_party/blink/renderer/core/html/forms/html_form_element.h index 3375fb2eb17..620c05a3cc9 100644 --- a/chromium/third_party/blink/renderer/core/html/forms/html_form_element.h +++ b/chromium/third_party/blink/renderer/core/html/forms/html_form_element.h @@ -71,13 +71,14 @@ class CORE_EXPORT HTMLFormElement final : public HTMLElement { void Disassociate(HTMLImageElement&); void DidAssociateByParser(); - void PrepareForSubmission(Event*, HTMLFormControlElement* submit_button); + void PrepareForSubmission(const Event*, + HTMLFormControlElement* submit_button); void submitFromJavaScript(); void requestSubmit(ExceptionState& exception_state); void requestSubmit(HTMLElement* submitter, ExceptionState& exception_state); void reset(); - void SubmitImplicitly(Event&, bool from_implicit_submission_trigger); + void SubmitImplicitly(const Event&, bool from_implicit_submission_trigger); String GetName() const; @@ -115,12 +116,6 @@ class CORE_EXPORT HTMLFormElement final : public HTMLElement { unsigned UniqueRendererFormId() const { return unique_renderer_form_id_; } - // TODO(crbug.com/1013385): Remove WillActivateSubmitButton, - // DidActivateSubmitButton, and RemovedAssociatedControlElement. They are - // here temporarily to fix form double-submit. - void WillActivateSubmitButton(HTMLFormControlElement* element); - void DidActivateSubmitButton(HTMLFormControlElement* element); - private: InsertionNotificationRequest InsertedInto(ContainerNode&) override; void RemovedFrom(ContainerNode&) override; @@ -137,9 +132,8 @@ class CORE_EXPORT HTMLFormElement final : public HTMLElement { } void SubmitDialog(FormSubmission*); - void Submit(Event*, HTMLFormControlElement* submit_button); - - void SubmitForm(FormSubmission*); + void ScheduleFormSubmission(const Event*, + HTMLFormControlElement* submit_button); void CollectListedElements(Node& root, ListedElement::List&) const; void CollectImageElements(Node& root, HeapVector<Member<HTMLImageElement>>&); @@ -168,11 +162,6 @@ class CORE_EXPORT HTMLFormElement final : public HTMLElement { // Do not access image_elements_ directly. Use ImageElements() instead. HeapVector<Member<HTMLImageElement>> image_elements_; - // https://html.spec.whatwg.org/C/#planned-navigation - // Unlike the specification, we use this only for web-exposed submit() - // function in 'submit' event handler. - Member<FormSubmission> planned_navigation_; - unsigned unique_renderer_form_id_; bool is_submitting_ = false; @@ -185,8 +174,6 @@ class CORE_EXPORT HTMLFormElement final : public HTMLElement { bool has_elements_associated_by_form_attribute_ : 1; bool did_finish_parsing_children_ : 1; bool is_in_reset_function_ : 1; - - Member<HTMLFormControlElement> activated_submit_button_; }; } // namespace blink |