Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 21024004: Add/remove spell checking markers in text inputs depending on focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up in the test & the new expected file. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/TextFieldInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/TextFieldInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698