Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index 03d1912a59322d9cd1a3befbaa851ac12dc7a83d..5ab1b2a693b1f88b730487508358ccebc806bc4d 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -254,11 +254,6 @@ void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint) |
FormAssociatedElement::removedFrom(insertionPoint); |
} |
-bool HTMLFormControlElement::wasChangedSinceLastFormControlChangeEvent() const |
-{ |
- return m_wasChangedSinceLastFormControlChangeEvent; |
-} |
- |
void HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent(bool changed) |
{ |
m_wasChangedSinceLastFormControlChangeEvent = changed; |
@@ -507,4 +502,12 @@ String HTMLFormControlElement::nameForAutofill() const |
return trimmedName; |
} |
+void HTMLFormControlElement::setFocus(bool flag) |
+{ |
+ LabelableElement::setFocus(flag); |
+ |
+ if (!flag && wasChangedSinceLastFormControlChangeEvent()) |
+ dispatchFormControlChangeEvent(); |
+} |
+ |
} // namespace Webcore |