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

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: Moved code to HTMLInputElement 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..afc4026f682dc42351246c4a17096a30b86917c3 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -388,6 +388,18 @@ void HTMLInputElement::handleFocusEvent(Element* oldFocusedElement, FocusType ty
m_inputType->enableSecureTextInput();
}
+void HTMLInputElement::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocusedElement, FocusType type)
+{
+ if (eventType == EventTypeNames::DOMFocusIn)
+ handleFocusInEvent(oldFocusedElement, type);
tkent 2014/09/10 23:47:11 This line should be replaced with m_inputTypeView-
Habib Virji 2014/09/11 09:12:22 Done.
+ HTMLFormControlElementWithState::dispatchFocusInEvent(eventType, oldFocusedElement, type);
+}
+
+void HTMLInputElement::handleFocusInEvent(Element* oldFocusedElement, FocusType type)
tkent 2014/09/10 23:47:11 This function is unnecessary. The function body is
Habib Virji 2014/09/11 09:12:22 Done.
+{
+ m_inputTypeView->handleFocusInEvent(oldFocusedElement, type);
+}
+
void HTMLInputElement::handleBlurEvent()
{
m_inputType->disableSecureTextInput();

Powered by Google App Engine
This is Rietveld 408576698