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

Unified Diff: tracing/tracing/base/base.html

Issue 1928873003: Use Polymer.dom with many dom manipulations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: fixes Created 4 years, 8 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 | tracing/tracing/base/unittest/html_test_results.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/base.html
diff --git a/tracing/tracing/base/base.html b/tracing/tracing/base/base.html
index 53239739c8c6c0b0ade3d9f9dfc8608b9ef63f66..516276f11a34b12b8030584362d9010be93b1b0a 100644
--- a/tracing/tracing/base/base.html
+++ b/tracing/tracing/base/base.html
@@ -119,11 +119,13 @@ this.tr = (function() {
showPanicElementIfNeeded();
var panicMessageEl = document.createElement('div');
- panicMessageEl.innerHTML =
+ Polymer.dom(panicMessageEl).innerHTML =
'<h2 id="message"></h2>' +
'<pre id="details"></pre>';
- panicMessageEl.querySelector('#message').textContent = panicTitle;
- panicMessageEl.querySelector('#details').textContent = panicDetails;
+ Polymer.dom(panicMessageEl).querySelector('#message').
+ textContent = panicTitle;
+ Polymer.dom(panicMessageEl).querySelector('#details').
+ textContent = panicDetails;
Polymer.dom(panicElement).appendChild(panicMessageEl);
rawPanicMessages.push({
« no previous file with comments | « no previous file | tracing/tracing/base/unittest/html_test_results.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698