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

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 7670073: ntp4: disable animations for pages that are off screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/resources/ntp4/tile_page.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 4dcd7069e3a608b12a9a9cb80b01c86128a57ad7..c0ca4fed41ab7537222af892342a406577703a6a 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -326,6 +326,8 @@ cr.define('ntp4', function() {
// Mark the current page
dots[cardSlider.currentCard].classList.add('selected');
logEvent('apps.layout: ' + (Date.now() - startTime));
+
+ document.documentElement.classList.remove('starting-up');
}
/**
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/resources/ntp4/tile_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698