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

Unified Diff: chrome/browser/resources/options/browser_options.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
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 03244296944844c4ef295a14649551696a647951..92d5a88f2eb6a9d9ffd8aac50477569b933c95c7 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -195,7 +195,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')) {
@@ -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