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

Unified Diff: ui/webui/resources/js/util.js

Issue 2691883002: Uprefix CSS transitions in ui/ and chrome/ styles (Closed)
Patch Set: transitions only Created 3 years, 10 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 | « ui/webui/resources/js/cr/ui/page_manager/page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/util.js
diff --git a/ui/webui/resources/js/util.js b/ui/webui/resources/js/util.js
index cdc8ed73c645259f519528ac03688abfbd8b57df..28a60d2ce1378e6c9609170c4aad62c3d547c856 100644
--- a/ui/webui/resources/js/util.js
+++ b/ui/webui/resources/js/util.js
@@ -285,12 +285,12 @@ function createElementWithClassName(type, className) {
}
/**
- * webkitTransitionEnd does not always fire (e.g. when animation is aborted
+ * transitionend does not always fire (e.g. when animation is aborted
* or when no paint happens during the animation). This function sets up
* a timer and emulate the event if it is not fired when the timer expires.
- * @param {!HTMLElement} el The element to watch for webkitTransitionEnd.
+ * @param {!HTMLElement} el The element to watch for transitionend.
* @param {number=} opt_timeOut The maximum wait time in milliseconds for the
- * webkitTransitionEnd to happen. If not specified, it is fetched from |el|
+ * transitionend to happen. If not specified, it is fetched from |el|
* using the transitionDuration style value.
*/
function ensureTransitionEndEvent(el, opt_timeOut) {
@@ -303,13 +303,13 @@ function ensureTransitionEndEvent(el, opt_timeOut) {
}
var fired = false;
- el.addEventListener('webkitTransitionEnd', function f(e) {
- el.removeEventListener('webkitTransitionEnd', f);
+ el.addEventListener('transitionend', function f(e) {
+ el.removeEventListener('transitionend', f);
fired = true;
});
window.setTimeout(function() {
if (!fired)
- cr.dispatchSimpleEvent(el, 'webkitTransitionEnd', true);
+ cr.dispatchSimpleEvent(el, 'transitionend', true);
}, opt_timeOut);
}
« no previous file with comments | « ui/webui/resources/js/cr/ui/page_manager/page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698