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

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

Issue 2267503002: Import polymer in a single place and remove d3 hacks (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 4 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: tracing/tracing/base/base.html
diff --git a/tracing/tracing/base/base.html b/tracing/tracing/base/base.html
index dba4d7b6f242a64f05c943fbcbecd7cd79f46cd9..9c9254b6c7f3ac8e79ce9745cef4437dc32602b5 100644
--- a/tracing/tracing/base/base.html
+++ b/tracing/tracing/base/base.html
@@ -96,14 +96,14 @@ this.tr = (function() {
panicElement = document.createElement('div');
panicElement.style.webkitFlex = '1 1 auto';
panicElement.style.overflow = 'auto';
- Polymer.dom(panicOverlay).appendChild(panicElement);
+ panicOverlay.appendChild(panicElement);
if (!document.body) {
setTimeout(function() {
- Polymer.dom(document.body).appendChild(panicOverlay);
+ document.body.appendChild(panicOverlay);
}, 150);
} else {
- Polymer.dom(document.body).appendChild(panicOverlay);
+ document.body.appendChild(panicOverlay);
}
}
@@ -119,14 +119,12 @@ this.tr = (function() {
showPanicElementIfNeeded();
var panicMessageEl = document.createElement('div');
- Polymer.dom(panicMessageEl).innerHTML =
+ panicMessageEl.innerHTML =
'<h2 id="message"></h2>' +
'<pre id="details"></pre>';
- Polymer.dom(Polymer.dom(panicMessageEl).querySelector('#message')).
- textContent = panicTitle;
- Polymer.dom(Polymer.dom(panicMessageEl).querySelector('#details')).
- textContent = panicDetails;
- Polymer.dom(panicElement).appendChild(panicMessageEl);
+ panicMessageEl.querySelector('#message').textContent = panicTitle;
+ panicMessageEl.querySelector('#details').textContent = panicDetails;
+ panicElement.appendChild(panicMessageEl);
rawPanicMessages.push({
title: panicTitle,

Powered by Google App Engine
This is Rietveld 408576698