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

Unified Diff: Source/WebCore/Resources/pagepopups/suggestionPicker.js

Issue 11364040: Merge 133011 - Calendar picker can flicker when opened from the suggestion picker (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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/WebCore/Resources/pagepopups/pickerCommon.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/Resources/pagepopups/suggestionPicker.js
===================================================================
--- Source/WebCore/Resources/pagepopups/suggestionPicker.js (revision 133256)
+++ Source/WebCore/Resources/pagepopups/suggestionPicker.js (working copy)
@@ -190,11 +190,16 @@
if (typeof entry.dataset.value !== "undefined") {
this.submitValue(entry.dataset.value);
} else if (entry.dataset.action === SuggestionPicker.ActionNames.OpenCalendarPicker) {
+ window.addEventListener("didHide", SuggestionPicker._handleWindowDidHide, false);
hideWindow();
- setTimeout(openCalendarPicker, 0);
}
};
+SuggestionPicker._handleWindowDidHide = function() {
+ openCalendarPicker();
+ window.removeEventListener("didHide", SuggestionPicker._handleWindowDidHide);
+};
+
/**
* @param {!Event} event
*/
« no previous file with comments | « Source/WebCore/Resources/pagepopups/pickerCommon.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698