HTMLTextFormControlElement::defaultEventHandler(event);
}
-void HTMLTextAreaElement::handleFocusEvent(Element*, FocusDirection)
+void HTMLTextAreaElement::handleFocusEvent(Element*, FocusType)
{
if (Frame* frame = document().frame())
frame->spellChecker().didBeginEditing(this);
setInnerTextValue(m_value);
setLastChangeWasNotUserEdit();
updatePlaceholderVisibility(false);
- setNeedsStyleRecalc();
+ setNeedsStyleRecalc(SubtreeStyleChange);
setFormControlValueMatchesRenderer(true);
+ m_suggestedValue = String();
// Set the caret to the end of the text value.
if (document().focusedElement() == this) {
m_suggestedValue = value;
setInnerTextValue(m_suggestedValue);
updatePlaceholderVisibility(false);
- setNeedsStyleRecalc();
+ setNeedsStyleRecalc(SubtreeStyleChange);
setFormControlValueMatchesRenderer(true);
}