Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 6c8b4877f4663da5e9de86acfc6463e522706c34..915603901377fc4e35ec6731c5eb5514f12e4cc3 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -393,6 +393,15 @@ void HTMLInputElement::updateFocusAppearance(bool restorePreviousSelection) |
HTMLTextFormControlElement::updateFocusAppearance(restorePreviousSelection); |
} |
+void HTMLInputElement::beginEditing() |
+{ |
+ if (!isTextField()) |
+ return; |
+ |
+ if (Frame* frame = document()->frame()) |
+ frame->editor()->textFieldDidBeginEditing(this); |
+} |
+ |
void HTMLInputElement::endEditing() |
{ |
if (!isTextField()) |