Chromium Code Reviews| Index: Source/core/html/HTMLTextAreaElement.cpp |
| diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp |
| index 03dd058004c659b8d34719330bf2d35c4a0b1346..296fe6e844d8391cfd14dd89aa58c1ed9e2b36c9 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* oldFocusedNode, FocusDirection direction) |
|
tony
2013/08/20 22:10:39
Nit: unused parameters should not be named.
|
| +{ |
| + if (Frame* frame = document()->frame()) |
| + frame->editor()->textAreaOrTextFieldDidBeginEditing(this); |
| +} |
| + |
| void HTMLTextAreaElement::subtreeHasChanged() |
| { |
| setChangedSinceLastFormControlChangeEvent(true); |