| Index: Source/core/editing/Editor.h
|
| diff --git a/Source/core/editing/Editor.h b/Source/core/editing/Editor.h
|
| index 053c3879df0890f10a76c38c05fac7a88a32081e..83fe6c8b29d7c93d7a992ab09f824ef982cbc4f7 100644
|
| --- a/Source/core/editing/Editor.h
|
| +++ b/Source/core/editing/Editor.h
|
| @@ -214,8 +214,8 @@ public:
|
| bool canRedo();
|
| void redo();
|
|
|
| - void didBeginEditing();
|
| - void didEndEditing();
|
| + void didBeginEditing(Element*);
|
| + void didEndEditing(Element*);
|
|
|
| void setBaseWritingDirection(WritingDirection);
|
|
|
| @@ -281,7 +281,7 @@ public:
|
| bool markedTextMatchesAreHighlighted() const;
|
| void setMarkedTextMatchesAreHighlighted(bool);
|
|
|
| - void textFieldDidBeginEditing(Element*);
|
| + void textAreaOrTextFieldDidBeginEditing(Element*);
|
| void textFieldDidEndEditing(Element*);
|
| void textDidChangeInTextField(Element*);
|
| bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*);
|
| @@ -309,6 +309,10 @@ public:
|
| };
|
| friend class RevealSelectionScope;
|
|
|
| + // Spell checks whole contents of a editable element (<input="text"/>, <textarea> or contenteditable)
|
| + // This gets called when any editable element gets focused.
|
| + void elementDidBeginEditing(Element*);
|
| +
|
| private:
|
| RefPtr<CompositeEditCommand> m_lastEditCommand;
|
| RefPtr<Node> m_removedAnchor;
|
| @@ -321,6 +325,7 @@ private:
|
| bool m_areMarkedTextMatchesHighlighted;
|
| EditorParagraphSeparator m_defaultParagraphSeparator;
|
| bool m_overwriteModeEnabled;
|
| + Vector<RefPtr<Node> > m_editablesSpellCheckedOnFocus;
|
|
|
| bool canDeleteRange(Range*) const;
|
| bool canSmartReplaceWithPasteboard(Pasteboard*);
|
|
|