Chromium Code Reviews| Index: chrome/browser/resources/new_new_tab.js |
| diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js |
| index a03969a22c76d9cba103b4d14bb45886afcf4dec..2255005c901ac48b6d06fb30f5788373b54d7c78 100644 |
| --- a/chrome/browser/resources/new_new_tab.js |
| +++ b/chrome/browser/resources/new_new_tab.js |
| @@ -2,6 +2,10 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +// To avoid creating tons of unnecessary nodes. We assume we cannot fit more |
| +// than this many items in the miniview. |
| +var MAX_MINIVIEW_ITEMS = 15; |
| + |
| var loading = true; |
| function updateSimpleSection(id, section) { |
| @@ -872,9 +876,11 @@ function fixLinkUnderline(el) { |
| updateAttribution(); |
| -var mostVisited = new MostVisited($('most-visited'), |
| - useSmallGrid(), |
| - shownSections & Section.THUMB); |
| +var mostVisited = new MostVisited( |
| + $('most-visited'), |
| + $('most-visited-section').getElementsByClassName('miniview')[0], |
|
arv (Not doing code reviews)
2010/08/31 20:54:22
document.querySelector('#most-visited-section .min
|
| + useSmallGrid(), |
| + shownSections & Section.THUMB); |
| function mostVisitedPages(data, firstRun) { |
| logEvent('received most visited pages'); |