Reviewed by Maciej.
[WebKit-https.git] / WebCore / khtml / html / html_formimpl.cpp
index b8a0ee7f5cb3c6749b8d30132340405188e02874..82fb5a550ed59666fd3661c16774c5a932b9334d 100644 (file)
@@ -1727,6 +1727,12 @@ void HTMLInputElementImpl::attach()
 #endif
 }
 
+void HTMLInputElementImpl::detach()
+{
+    HTMLGenericFormElementImpl::detach();
+    m_valueMatchesRenderer = false;
+}
+
 DOMString HTMLInputElementImpl::altText() const
 {
     // http://www.w3.org/TR/1998/REC-html40-19980424/appendix/notes.html#altgen
@@ -3151,6 +3157,12 @@ void HTMLTextAreaElementImpl::accessKeyAction()
     focus();
 }
 
+void HTMLTextAreaElementImpl::detach()
+{
+    HTMLGenericFormElementImpl::detach();
+    m_valueMatchesRenderer = false;
+}
+
 // -------------------------------------------------------------------------
 
 HTMLIsIndexElementImpl::HTMLIsIndexElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f)