void HTMLTextAreaElement::updateValue() const { if (formControlValueMatchesRenderer()) return; ASSERT(renderer()); m_value = toRenderTextControl(renderer())->text(); const_cast<HTMLTextAreaElement*>(this)->setFormControlValueMatchesRenderer(true); notifyFormStateChanged(this); }
void HTMLTextAreaElement::updateValue() const { if (formControlValueMatchesRenderer()) return; ASSERT(renderer()); m_value = innerTextValue(); const_cast<HTMLTextAreaElement*>(this)->setFormControlValueMatchesRenderer(true); m_isDirty = true; m_wasModifiedByUser = true; const_cast<HTMLTextAreaElement*>(this)->updatePlaceholderVisibility(false); }