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

Unified Diff: Source/core/html/forms/TypeAhead.cpp

Issue 1309503004: Select elements should clear type-ahead session on blur. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/forms/TypeAhead.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/TypeAhead.cpp
diff --git a/Source/core/html/forms/TypeAhead.cpp b/Source/core/html/forms/TypeAhead.cpp
index 76ad2ef1747bc5786f46708b29bd8530541fcbed..38bbef17c0776c5fde21bdf6d16ef1fff98aa172 100644
--- a/Source/core/html/forms/TypeAhead.cpp
+++ b/Source/core/html/forms/TypeAhead.cpp
@@ -126,4 +126,10 @@ bool TypeAhead::hasActiveSession(KeyboardEvent* event)
return delta <= typeAheadTimeout;
}
+void TypeAhead::resetSession()
+{
+ m_lastTypeTime = 0;
+ m_buffer.clear();
+}
+
} // namespace blink
« no previous file with comments | « Source/core/html/forms/TypeAhead.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698