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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 2535573002: Reduce usage of webkit CSS prefixes in chrome/browser/resources (Closed)
Patch Set: CSSOM Created 4 years 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: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 3326d3c5f29650fbb81436ad97ad915c67ec75ec..04863ddf7f32b99e05460ee4da8da206b7c26110 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -194,7 +194,7 @@ cr.define('options', function() {
$('advanced-settings').hidden = true;
}
- $('advanced-settings').addEventListener('webkitTransitionEnd',
+ $('advanced-settings').addEventListener('transitionend',
this.updateAdvancedSettingsExpander_.bind(this));
if (loadTimeData.getBoolean('showAbout')) {
@@ -937,7 +937,7 @@ cr.define('options', function() {
// If the section is already animating, dispatch a synthetic transition
// end event as the upcoming code will cancel the current one.
if (section.classList.contains('sliding'))
- cr.dispatchSimpleEvent(section, 'webkitTransitionEnd');
+ cr.dispatchSimpleEvent(section, 'transitionend');
this.addTransitionEndListener_(section);
@@ -1061,7 +1061,7 @@ cr.define('options', function() {
},
/**
- * Adds a |webkitTransitionEnd| listener to the given section so that
+ * Adds a |transitionend| listener to the given section so that
* it can be animated. The listener will only be added to a given section
* once, so this can be called as multiple times.
* @param {HTMLElement} section The section to be animated.
@@ -1071,14 +1071,14 @@ cr.define('options', function() {
if (section.hasTransitionEndListener_)
return;
- section.addEventListener('webkitTransitionEnd',
+ section.addEventListener('transitionend',
this.onTransitionEnd_.bind(this));
section.hasTransitionEndListener_ = true;
},
/**
* Called after an animation transition has ended.
- * @param {Event} event The webkitTransitionEnd event. NOTE: May be
+ * @param {Event} event The transitionend event. NOTE: May be
* synthetic.
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698