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

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

Issue 2535493002: Reduce webkit CSS prefixes in ui/ styles (Closed)
Patch Set: sort Created 4 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
Index: ui/webui/resources/js/util.js
diff --git a/ui/webui/resources/js/util.js b/ui/webui/resources/js/util.js
index 9f299674db0458edbfca59071dfc61aa917ea53a..05f6631e0c468ac65cf28d63daa25e7162a91de6 100644
--- a/ui/webui/resources/js/util.js
+++ b/ui/webui/resources/js/util.js
@@ -290,12 +290,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) {
@@ -308,13 +308,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);
}
« ui/webui/resources/css/widgets.css ('K') | « 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