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

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

Issue 541993003: Generate focusin for input type=date/time when selected by tab (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master and updated test Created 6 years, 3 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
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 5afcb218a6af313fca1a3ac1b048ca26c9e4ed91..a58c934315e1f94fc9aa80715d0cf97c9c29e04f 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -375,6 +375,13 @@ void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty
m_inputType->enableSecureTextInput();
}
+void HTMLInputElement::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocusedElement, FocusType type)
+{
+ if (eventType == EventTypeNames::DOMFocusIn)
+ m_inputTypeView->handleFocusInEvent(oldFocusedElement, type);
+ HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedElement, type);
+}
+
void HTMLInputElement::handleBlurEvent()
{
m_inputType->disableSecureTextInput();
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698