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

Unified Diff: chrome/browser/resources/options/content_settings.js

Issue 6099016: Drastically reduce the number of redraws when editing content settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix selection bug Created 9 years, 11 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 | chrome/browser/resources/options/content_settings_exceptions_area.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/content_settings.js
diff --git a/chrome/browser/resources/options/content_settings.js b/chrome/browser/resources/options/content_settings.js
index a9a80bb3d56b5bccd526949fdd10e4d193501511..2b40cbf0ef700126295b68341a32d9dedb0c696e 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -98,11 +98,7 @@ cr.define('options', function() {
document.querySelector('div[contentType=' + type + ']' +
' list[mode=normal]');
- exceptionsList.reset();
- for (var i = 0; i < list.length; i++) {
- exceptionsList.addException(list[i]);
- }
- exceptionsList.redraw();
+ exceptionsList.setExceptions(list);
};
ContentSettings.setOTRExceptions = function(type, list) {
@@ -111,12 +107,7 @@ cr.define('options', function() {
' list[mode=otr]');
exceptionsList.parentNode.classList.remove('hidden');
-
- exceptionsList.reset();
- for (var i = 0; i < list.length; i++) {
- exceptionsList.addException(list[i]);
- }
- exceptionsList.redraw();
+ exceptionsList.setExceptions(list);
};
/**
« no previous file with comments | « no previous file | chrome/browser/resources/options/content_settings_exceptions_area.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698