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

Unified Diff: ui/webui/resources/js/cr/ui/page_manager/page.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/cr/ui/page_manager/page.js
diff --git a/ui/webui/resources/js/cr/ui/page_manager/page.js b/ui/webui/resources/js/cr/ui/page_manager/page.js
index a78da800041e3902acf8689e1690c8a45a66dc99..2bb41250e496ee2ccb1fdaa7134158b01ecc1932 100644
--- a/ui/webui/resources/js/cr/ui/page_manager/page.js
+++ b/ui/webui/resources/js/cr/ui/page_manager/page.js
@@ -242,17 +242,17 @@ cr.define('cr.ui.pageManager', function() {
var loading = PageManager.isLoading();
if (!loading) {
// TODO(flackr): Use an event delegate to avoid having to subscribe and
- // unsubscribe for webkitTransitionEnd events.
- container.addEventListener('webkitTransitionEnd', function f(e) {
+ // unsubscribe for transitionend events.
+ container.addEventListener('transitionend', function f(e) {
var propName = e.propertyName;
if (e.target != e.currentTarget ||
(propName && propName != 'opacity')) {
return;
}
- container.removeEventListener('webkitTransitionEnd', f);
+ container.removeEventListener('transitionend', f);
self.fadeCompleted_();
});
- // -webkit-transition is 200ms. Let's wait for 400ms.
+ // transition is 200ms. Let's wait for 400ms.
ensureTransitionEndEvent(container, 400);
}
@@ -261,7 +261,7 @@ cr.define('cr.ui.pageManager', function() {
pageDiv.hidden = false;
pageDiv.page = this;
// NOTE: This is a hacky way to force the container to layout which
- // will allow us to trigger the webkit transition.
+ // will allow us to trigger the transition.
/** @suppress {uselessCode} */
container.scrollTop;

Powered by Google App Engine
This is Rietveld 408576698