summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/local_ntp/most_visited_single.js
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-20 10:33:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-22 11:45:12 +0000
commitbe59a35641616a4cf23c4a13fa0632624b021c1b (patch)
tree9da183258bdf9cc413f7562079d25ace6955467f /chromium/chrome/browser/resources/local_ntp/most_visited_single.js
parentd702e4b6a64574e97fc7df8fe3238cde70242080 (diff)
BASELINE: Update Chromium to 62.0.3202.101
Change-Id: I2d5eca8117600df6d331f6166ab24d943d9814ac Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/chrome/browser/resources/local_ntp/most_visited_single.js')
-rw-r--r--chromium/chrome/browser/resources/local_ntp/most_visited_single.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/chromium/chrome/browser/resources/local_ntp/most_visited_single.js b/chromium/chrome/browser/resources/local_ntp/most_visited_single.js
index 212538cfcc6..45e98035dc2 100644
--- a/chromium/chrome/browser/resources/local_ntp/most_visited_single.js
+++ b/chromium/chrome/browser/resources/local_ntp/most_visited_single.js
@@ -178,8 +178,6 @@ var handleCommand = function(data) {
showTiles(data);
} else if (cmd == 'updateTheme') {
updateTheme(data);
- } else if (cmd == 'tilesVisible') {
- hideOverflowTiles(data);
} else {
console.error('Unknown command: ' + JSON.stringify(data));
}
@@ -193,7 +191,6 @@ var handleCommand = function(data) {
var showTiles = function(info) {
logEvent(LOG_TYPE.NTP_ALL_TILES_RECEIVED);
countLoad();
- hideOverflowTiles(info);
};
@@ -241,19 +238,6 @@ var updateTheme = function(info) {
/**
- * Hides extra tiles that don't fit on screen. Called in response to the 'show'
- * and 'tilesVisible' messages from the host page.
- */
-var hideOverflowTiles = function(data) {
- var tileAndEmptyTileList =
- document.querySelectorAll('#mv-tiles .mv-tile,#mv-tiles .mv-empty-tile');
- for (var i = 0; i < tileAndEmptyTileList.length; ++i) {
- tileAndEmptyTileList[i].classList.toggle('hidden', i >= data.maxVisible);
- }
-};
-
-
-/**
* Removes all old instances of #mv-tiles that are pending for deletion.
*/
var removeAllOldTiles = function() {