summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/ntp4/tile_page.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/ntp4/tile_page.js')
-rw-r--r--chromium/chrome/browser/resources/ntp4/tile_page.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/chrome/browser/resources/ntp4/tile_page.js b/chromium/chrome/browser/resources/ntp4/tile_page.js
index f6de15ab41c..600fc1f09b4 100644
--- a/chromium/chrome/browser/resources/ntp4/tile_page.js
+++ b/chromium/chrome/browser/resources/ntp4/tile_page.js
@@ -41,7 +41,7 @@ cr.define('ntp', function() {
* @extends {HTMLDivElement}
*/
function Tile(contents) {
- const tile = cr.doc.createElement('div');
+ const tile = /** @type {!Tile} */ (document.createElement('div'));
tile.__proto__ = Tile.prototype;
tile.initialize(contents);
@@ -372,7 +372,7 @@ cr.define('ntp', function() {
* @implements {cr.ui.DragWrapperDelegate}
*/
function TilePage(gridValues) {
- const el = cr.doc.createElement('div');
+ const el = /** @type {!TilePage} */ (document.createElement('div'));
el.gridValues_ = gridValues;
el.__proto__ = TilePage.prototype;
el.initialize();