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

Unified Diff: chrome/browser/resources/print_preview/component.js

Issue 588713002: Compile print_preview, part 3: reduce down to 185 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_2
Patch Set: fix assert Created 6 years, 3 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
Index: chrome/browser/resources/print_preview/component.js
diff --git a/chrome/browser/resources/print_preview/component.js b/chrome/browser/resources/print_preview/component.js
index acf49640d67be0a9406af1391c524ae37b840fe8..758d2b54e70b9a2f288ca33903127c8368b69523 100644
--- a/chrome/browser/resources/print_preview/component.js
+++ b/chrome/browser/resources/print_preview/component.js
@@ -189,7 +189,7 @@ cr.define('print_preview', function() {
var templateEl = $(templateId);
assert(templateEl != null,
'Could not find element with ID: ' + templateId);
- var el = templateEl.cloneNode(true);
+ var el = assertInstanceof(templateEl.cloneNode(true), HTMLElement);
el.id = '';
if (!opt_keepHidden) {
setIsVisible(el, true);
« no previous file with comments | « chrome/browser/resources/print_preview/common/search_box.js ('k') | chrome/browser/resources/print_preview/data/app_state.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698