Index: Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp |
index 03dd058004c659b8d34719330bf2d35c4a0b1346..62d5d00b18571de4e9a6ac26f9bca04bbb5b6378 100644 |
--- a/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/Source/core/html/HTMLTextAreaElement.cpp |
@@ -37,6 +37,7 @@ |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/Text.h" |
#include "core/dom/shadow/ShadowRoot.h" |
+#include "core/editing/Editor.h" |
#include "core/editing/FrameSelection.h" |
#include "core/editing/TextIterator.h" |
#include "core/html/FormController.h" |
@@ -266,6 +267,12 @@ void HTMLTextAreaElement::defaultEventHandler(Event* event) |
HTMLTextFormControlElement::defaultEventHandler(event); |
} |
+void HTMLTextAreaElement::handleFocusEvent(Element*, FocusDirection) |
+{ |
+ if (Frame* frame = document()->frame()) |
+ frame->editor()->textAreaOrTextFieldDidBeginEditing(this); |
+} |
+ |
void HTMLTextAreaElement::subtreeHasChanged() |
{ |
setChangedSinceLastFormControlChangeEvent(true); |