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

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 tests and removed handleFocusInEvent handler 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 253c04bd2f005c3d7b92a0c8d353b10a9c39e963..47072cdf537590ad4f4b121248b7a37ab931881c 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -388,6 +388,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)
tkent 2014/09/11 23:52:55 Two spaces after == should be one.
Habib Virji 2014/09/12 08:18:25 Done.
+ m_inputTypeView->handleFocusInEvent(oldFocusedElement, type);
+ HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedElement, type);
+}
+
void HTMLInputElement::handleBlurEvent()
{
m_inputType->disableSecureTextInput();

Powered by Google App Engine
This is Rietveld 408576698