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

Unified Diff: ui/webui/resources/js/cr/ui/card_slider.js

Issue 2535493002: Reduce webkit CSS prefixes in ui/ styles (Closed)
Patch Set: bluetooth_internals/snackbar.js 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/images/throbber_small.svg ('k') | ui/webui/resources/js/cr/ui/overlay.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/card_slider.js
diff --git a/ui/webui/resources/js/cr/ui/card_slider.js b/ui/webui/resources/js/cr/ui/card_slider.js
index 1dc274008941120e53315374ffc272b85bd7c4a8..dd4693db13305715ce5cb814f04736623aa21d28 100644
--- a/ui/webui/resources/js/cr/ui/card_slider.js
+++ b/ui/webui/resources/js/cr/ui/card_slider.js
@@ -140,7 +140,7 @@ cr.define('cr.ui', function() {
'mousewheel', this.onMouseWheel_.bind(this));
}
this.container_.addEventListener(
- 'webkitTransitionEnd', this.onWebkitTransitionEnd_.bind(this));
+ 'transitionend', this.onTransitionEnd_.bind(this));
// Also support touch events in case a touch screen happens to be
// available. Note that this has minimal impact in the common case of
@@ -333,12 +333,12 @@ cr.define('cr.ui', function() {
},
/**
- * Handles the ends of -webkit-transitions on transform (animated
+ * Handles the ends of transitions on transform (animated
* card switches).
- * @param {Event} e The webkitTransitionEnd event.
+ * @param {Event} e The transitionend event.
* @private
*/
- onWebkitTransitionEnd_: function(e) {
+ onTransitionEnd_: function(e) {
// Ignore irrelevant transitions that might bubble up.
if (e.target !== this.container_ || e.propertyName != 'transform')
return;
@@ -571,7 +571,7 @@ cr.define('cr.ui', function() {
transition =
'transform ' + CardSlider.TRANSITION_TIME_ + 'ms ease-in-out';
}
- this.container_.style.WebkitTransition = transition;
+ this.container_.style.transition = transition;
this.translateTo_(this.currentLeft_);
return true;
@@ -601,7 +601,7 @@ cr.define('cr.ui', function() {
*/
onTouchStart_: function(e) {
e = /** @type {!cr.ui.TouchHandler.Event} */ (e);
- this.container_.style.WebkitTransition = '';
+ this.container_.style.transition = '';
e.enableDrag = true;
},
« no previous file with comments | « ui/webui/resources/images/throbber_small.svg ('k') | ui/webui/resources/js/cr/ui/overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698