X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fhtml%2FHTMLGenericFormElement.cpp;h=53e0c9ec3a7711f2e7609df1af81969c90cfbbc8;hp=fc5387f8e5160370725492c39904bf152ba1a51e;hb=add00eadf2c0a1b9d0b7816939253c26cccdf958;hpb=5a5f696a0ff723dd8adb34df44d806f917922556 diff --git a/WebCore/html/HTMLGenericFormElement.cpp b/WebCore/html/HTMLGenericFormElement.cpp index fc5387f8e516..53e0c9ec3a77 100644 --- a/WebCore/html/HTMLGenericFormElement.cpp +++ b/WebCore/html/HTMLGenericFormElement.cpp @@ -216,6 +216,14 @@ HTMLFormElement* HTMLGenericFormElement::virtualForm() const return m_form; } +void HTMLGenericFormElement::removeFromForm() +{ + if (!m_form) + return; + m_form->removeFormElement(this); + m_form = 0; +} + HTMLFormControlElementWithState::HTMLFormControlElementWithState(const QualifiedName& tagName, Document* doc, HTMLFormElement* f) : HTMLGenericFormElement(tagName, doc, f) {