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

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

Issue 2535573002: Reduce usage of webkit CSS prefixes in chrome/browser/resources (Closed)
Patch Set: rebase 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
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 41b0faebe6a4cbacde9b5444772fd95d33f6df0a..a1ceb1fc37f5631c25d03c328a69edfd8f92a983 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.valueExists('aboutOverlayTabTitle')) {
@@ -936,7 +936,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);
@@ -1060,7 +1060,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.
@@ -1070,14 +1070,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