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

Unified Diff: chrome/browser/resources/help/help_page.js

Issue 1530773002: Revert of Fix flaky logo spin animation restart logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/help/help_page.js
diff --git a/chrome/browser/resources/help/help_page.js b/chrome/browser/resources/help/help_page.js
index 04c4756bced49d141a34de8b14dcf133590e1b6c..7e075f2bafce6c85dc9b54f8e86b1e86b7e5568d 100644
--- a/chrome/browser/resources/help/help_page.js
+++ b/chrome/browser/resources/help/help_page.js
@@ -165,9 +165,7 @@
var logo = $('product-logo');
logo.onclick = function(e) {
logo.classList.remove('spin');
- // Force a style recalc that cancels the animation specified by "spin".
- getComputedStyle(logo).animationName;
- logo.classList.add('spin');
+ setTimeout(function() { logo.classList.add('spin'); }, 0);
};
// Attempt to update.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698