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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/list.js

Issue 9568039: Added guard to not set scrollTop if it hasn't changed. Surprisingly, this speeds up the list.redraw… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed setting of scrollTop. Created 8 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
« 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/shared/js/cr/ui/list.js
diff --git a/chrome/browser/resources/shared/js/cr/ui/list.js b/chrome/browser/resources/shared/js/cr/ui/list.js
index e2f242a6d32972fef995eb83c9822ec3385bf72e..67472a2cffb34e2c0ad88322b3701f310ae30dfb 100644
--- a/chrome/browser/resources/shared/js/cr/ui/list.js
+++ b/chrome/browser/resources/shared/js/cr/ui/list.js
@@ -1120,8 +1120,6 @@ cr.define('cr.ui', function() {
listItem = newCachedItems[y];
}
- this.scrollTop = scrollTop;
-
this.firstIndex_ = firstIndex;
this.lastIndex_ = lastIndex;
« 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